The form form in PHP uses both post and get pass parameter descriptions _php Tutorial

Source: Internet
Author: User
Tags form post
In the form we have a method property, he can let the form is post and get, in PHP should use the corresponding get,post to receive, let me introduce the method parameter description

1. It was used before, when the form form post commits, the URL of the action passes the get parameter, which is available on the server side:

The code is as follows Copy Code

Print_r ($_get);
Print_r ($_post);
?>

2. However, if your form submission type is Get,url, the parameters passed are not available:

The code is as follows Copy Code

/**
* Test get and post submissions
* @link (http://www.bKjia.c0m)
*/
Print_r ($_get);
Print_r ($_post);
?>

http://www.bkjia.com/PHPjc/632751.html www.bkjia.com true http://www.bkjia.com/PHPjc/632751.html techarticle in the form we have a method property, he can let the form is post and get, in PHP should use the corresponding get,post to receive, let me introduce the method parameter description 1 .

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