PHP form submission (Post&get&url/decode)

Source: Internet
Author: User
Tags php form
The Post method does not depend on the URL, and the passed parameter values are not displayed in the Address bar. In addition, the Post method can not restrict the data to the server, all the submitted information in the background transfer, the user in the browser is not visible to the process, high security.

The POST method is more suitable for sending a confidential or large amount of data to the server.

The Get method is

The default method for the methods property in the form. form data submitted using the Get method is appended to the URL and sent to the server side as part of the URL.

Note: To use the Get method to send the form, the URL length should be limited to 1MB characters. If the amount of data sent is too large, the data is truncated, causing unexpected or failed processing results.

To encode/decode the data passed by the hyperlink:

String UrlEncode (String str): URL encoding of the string str

String UrlDecode (String str): Decoding

The above describes the PHP form submission (Post&get&url codec), including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.

  • 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.