关于我用post来传值的问题
1,login.php
管理员登录
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”>
注意标点符号
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