Heim >Backend-Entwicklung >PHP-Tutorial >关于小弟我用post来传值的有关问题

关于小弟我用post来传值的有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:15:46771Durchsuche

关于我用post来传值的问题
1,login.php



管理员登录









用户ID:
密码:







2,loginProcess.php
 header("content-type:text/html;charset=utf-8");
$id=$_POST["id"];
$password=$_POST['password'];
if($id=="admin"&&$password=="admin"){
header("localtion:empManage.php");
}
else {
header("localtion:login.php?errno=1");
exit();
}
?>

可是我点提交的时候,居然显示
Notice: Undefined index: id in D:\wamp1\www\emp\loginProcess.php on line 3

------解决方案--------------------
ype="text" name=“id”>
注意标点符号
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
Vorheriger Artikel:关于url的有关问题Nächster Artikel:PDO:exec()返回值的有关问题