This article is to introduce us when we submit a form if the form uses a Get method, and then we use get to get to the will be garbled, let me see how to solve this problem.
Originally intended to use this
The code is as follows |
Copy Code |
[View Jurisdiction News] |
Results are obtained on the list.php page-view [territory dynamic Yiwen]
I think it may be the "state" of the Chinese character this code and some things conflict, so ...
I found an online solution like this:
Use:
The code is as follows |
Copy Code |
"Charset=" Utf-8 "target=" main ">[view] |
Then use it on the list.php page
The code is as follows |
Copy Code |
$plate =urldecode ($_get[' plate '); |
It will not be garbled and passed out of normal
About the string UrlEncode (string $str) function
This function makes it easy to encode a string and use it for the request part of the URL, and it also facilitates the passing of a variable to the next page.
Example #1 UrlEncode () example
The code is as follows |
Copy Code |
Echo '; ?> |
Example #2 UrlEncode () and htmlentities () example
The code is as follows |
Copy Code |
$query _string = ' foo= '. UrlEncode ($foo). ' &bar= '. UrlEncode ($bar); Echo '; ?> |
http://www.bkjia.com/PHPjc/631260.html www.bkjia.com true http://www.bkjia.com/PHPjc/631260.html techarticle This article is to introduce us when we submit a form if the form uses a Get method, and then we use get to get to the will be garbled, let me see how to solve this problem. ...