|
代码很简单:
<?
echo $username;
echo $password;
if ($username!="" and $password!="")
{
...
}
else
{
?>
<html>
<head>
<title>login</title>
</head>
<body>
<form action="login.php" mothod="post">
<table>
<tr><td>username:</td>
<td><input type="text" name="username"></td></tr>
<tr><td>password:</td>
<td><input type="password" name="password"></td></tr>
<tr><td><input type="submit" value="login">
<input type="reset" value="reset"></td></tr>
</table>
</form>
</body>
</html>
<?
}
?>
每次递交表单后,总显示空表单而不能输出两个变量值以及后续的操作.不知是何原因?是否是在安装php时未编译成动态的缘故? |
|