<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
姓名:<input type="text" name="zero">
密码:<input type="password" name="zfc">
<input type="submit" value="提交">
</form>
<?php
$name = $_POST['zero'];
$password = $_POST['zfc'];
echo $name;
echo $password;
?>
</body>
</html>
转载于:https://my.oschina.net/u/2456768/blog/509148