Heim  >  Artikel  >  Backend-Entwicklung  >  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:021468Durchsuche

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[]
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn