Questions about provincial/municipal second-level linkage garbled!

Source: Internet
Author: User
The provincial/municipal level-2 linkage garbled problem! Urgent !!! Online and other problems of using php + mysql + jquery to achieve second-level linkage between similar provinces and cities, that is, there are different classes under the school. if the function is completed, it is garbled to select a school and then select a class, I changed many encoding types. it is normal to test the page of the class separately. what is the problem ?? PHPcode & Questions about provincial/municipal second-level linkage garbled! Urgent !!! Online
Using php + mysql + jquery to achieve second-level linkage between similar provinces and cities is that the school has different classes, and the function has been completed, that is, it is garbled to select the school and then select the class, I changed many encoding types. it is normal to test the page of the class separately. what is the problem ??
PHP code
  
      Select a class    
   $ V) {$ v ['class _ name'] = iconv ('utf-8', 'gbk', $ v ['class _ name']);?>'>
        
   

This is the class page !!!

------ Solution --------------------
"Restart again or the original code is normal", browser cache
You need to extract the cache header from the php output.

------ Solution --------------------
The file encoding, database, and page Output Content encoding should be kept as far as possible. The problem of garbled characters is not serious.
------ Solution --------------------
Function: 20. function changelocation (locationid)
21 .{
22.doc ument. myform. ctype. length = 0;
23. var locationidlocationid = locationid;
24. var I;
25. for (I = 0; I <onecount; I ++)
26 .{
27. if (subcat [I] [2] = locationid)
28 .{
29. // var newnewOption1 = new Option (subcat [I]
[1], subcat [I] [0]);
30. // document. all. ctype. add (newOption1 );
31.doc ument. myform. ctype. options [document.
Myform. ctype. length] = new Option (subcat
[I] [1], subcat [I] [0]);
32 .}
33 .}
34 .}
See http://www.phpnewer.com/index.php/Ymgx/detail/id/30 for details

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.