How to encode the urlencode parameter for form get submission

Source: Internet
Author: User
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; forpolichod = & quot; get & quot; action = & quot; & quot; & gt; & nbsp; enter the type: & lt; inputtype = & qu form get for submission. 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
 

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.