When PHP uses post to transmit data, action = "login. php? Id = 2 ", click submit, $ _ POST [" id "] cannot be displayed, that is, it is not set!

Source: Internet
Author: User
Tags php form
When PHP uses post to transmit data, actionlogin. php ?, Click SUBMIT. $ _ POST [id] cannot be displayed, that is, it is not set! PHP Form action $ _ POST []

PHP sets action = "login. php? Id = 2 ",
Click SUBMIT. $ _ POST ["id"] cannot be displayed, that is, it is not set! But other,
For example, the value of $ _ POST ["name"] exists.

The original plan was to judge by the value of id. However, the same php page processes different requests,
Please help!

If you have money, you may have money or someone else.


Reply to discussion (solution)

$ _ GET ['id'] is required for parameters above the url;

$ _ GET ['id'] is required for parameters above the url;
A word awakened the Dreamer!
Thank you on behalf of the people all over the world!

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.