Form get submission, how to submit the URL encoding form with the urlencode parameter, and how to encode the urlencode parameter with 1.php& lt; formmethod & quot; get & quot; action & quot; & gt; & nbsp; enter the type: & lt; inputtype & quot; text & quot; name & quot; typ form to submit in get mode. how to encode the parameter urlencode
How to encode the urlencode parameter for form get submission
For example:
1. php
Enter Chinese characters in the text box and click Submit. the url is 1.php? Type = Chinese,
How can I get 1.php? Type = url of urlencode (Chinese?
------ Solution --------------------
Change the type of the submit button. encode the text before changing the location of the document during onclick.
Use js to control browser address changes.
------ Solution --------------------
Discussion
I just want to say that you can go to the Baidu homepage to see what the button is, and it is also an Input. it is also in a form. by default, form is used to submit parameters in urlencode. apache will decode the get parameter, the post parameter php will decode, and the data you get will always be intact, unless the client directly post a bunch of things, Content-type is not form-data, php will leave it to you, called raw_post_data.
......
------ Solution --------------------
If this is the case, you can simply process it when submitting the FORM.
1. php
PHP code