welcome.html代码如下
<!DOCTYPE html>
<html>
<head>
<title>test </title>
</head>
<body>
<p> </p>
<form style="text-align:center" action="welcome.php" method="POST">
用户: <input type="text" name="user" value="user"><br>
密码: <input type="password" name="mima" value="123456"><br>
<input type="submit">
</form>
<p style="text-align:center"></p>
</body>
</html>
welcome.php代码如下
<html>
<body>
Welcome <?php echo $_POST["user"]; ?><br>
Your email key is: <?php echo $_POST["mima"]; ?>
</body>
</html>
运行welcome.html后
点击提交后
请教各位,多谢啦!