<form method="post" action="Login.php" name="UserLogin" onSubmit="return checkDate();">
<div align="right">
用户:<input name="UserName" type="text" id="UserName" width="100">
密码:<input name="Password" type="password" id="Password" width="100">
<input name="submit" type="image" src="images/login.gif" width="60" height="20" border="0"></div>
</form>
在login。php:
<?php include 'conn.php';
$pwd = $_POST['Password'];
$name = $_POST['Username'];
获取不了username,可以获取password 为什么?在线求助
<div align="right">
用户:<input name="UserName" type="text" id="UserName" width="100">
密码:<input name="Password" type="password" id="Password" width="100">
<input name="submit" type="image" src="images/login.gif" width="60" height="20" border="0"></div>
</form>
在login。php:
<?php include 'conn.php';
$pwd = $_POST['Password'];
$name = $_POST['Username'];
获取不了username,可以获取password 为什么?在线求助
名字要和input name="UserName"的名字一致啊,不然肯定无果!