表单代码
<html>
<head>
<title>as</title>
<form action="as.php" method="POST">
用户账号:<input type="text" name="username"><br>
用户密码:<input type="password" name="password"><br>
<input type ="submit" name="submit" value="注册">
</form>
</head>
</html>
php代码
<?php
echo "$_POST['username']";
echo "$_POST['password']";
?>
<html>
<head>
<title>as</title>
<form action="as.php" method="POST">
用户账号:<input type="text" name="username"><br>
用户密码:<input type="password" name="password"><br>
<input type ="submit" name="submit" value="注册">
</form>
</head>
</html>
php代码
<?php
echo "$_POST['username']";
echo "$_POST['password']";
?>