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