PHP action= "login.php?id=2" click Submit when applying POST to transmit data, $_post["id" cannot be displayed, i.e. not set

Source: Internet
Author: User
PHP in the use of POST data, action= "login.php?id=2", click Submit, $_post["id"] can not be displayed, that is not set!
PHP sets action= "login.php?id=2" when using post to pass form form data,
Click Submit, use $_post["id"] can not display, that is not set! But the others,
For example, the value of $_post["name") is present

The original plan is judged by the value of the ID, and the same PHP page handles different requests.
Please help us!

Money to hold a court, someone's personal field. PHP Form Action $_post[]

Share to:


------Solution--------------------
The parameters above the URL must be $_get[' id '];

  • Related Article

    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.