Home > Backend Development > PHP Tutorial > 关于小弟我用post来传值的有关问题

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

WBOY
Release: 2016-06-13 10:15:46
Original
756 people have browsed it

关于我用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”>
注意标点符号
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template