Home  >  Article  >  Backend Development  >  PHP在施用post传递数据时,action="login.php?id=2"点击提交,$_POST["id"]无法显示,即没有被设置

PHP在施用post传递数据时,action="login.php?id=2"点击提交,$_POST["id"]无法显示,即没有被设置

WBOY
WBOYOriginal
2016-06-13 12:42:021468browse

PHP在使用post传递数据时,action="login.php?id=2",点击提交,$_POST["id"]无法显示,即没有被设置!
PHP在使用post传递form表单数据时,设置action="login.php?id=2",
点击提交,使用$_POST["id"]无法显示,即没有被设置!但是其他的,
比如$_POST["name"]的值是存在的

原计划是通过id的值进行判断,然同一个php页面处理不同的请求,
请大家帮帮忙!

有钱的捧个钱场,有人的捧个人场。

PHP Form action $_POST[]
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn