When PHP uses post to transmit data, action = & quot; login. php? Id = 2 & quot;, click submit, $ _ POST [& quot; id & quot;] cannot be displayed, that is, it is not set! PHP sets action = "login. php? Id = 2 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!
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. PHP Form action $ _ POST:
------ Solution --------------------
$ _ GET ['id'] is required for parameters above the url;
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.