<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>get</title>
</head>
<body>
<form action="" method="get">
<label for="email">邮箱</label>
<input type="email" id="email" name="email" value="">
<label for="password">密码</label>
<input type="password" id="email" name="password" value="">
<button>登陆</button>
</form>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>post</title>
</head>
<body>
<h2>用户登陆</h2>
<form action="" method="post">
<p>
<label for="email">邮箱</label>
<input type="email" id="email" name="email" value="<?=$_POST['email']?:''?>">
</p>
<p>
<label for="password">密码</label>
<input type="password" id="email" name="password" value="<?=$_POST['password']?:''?>">
</p>
<p>
<button>登陆</button>
</p>
</form>
</body>
</html>
<?php
echo '<pre>';
print_r($_POST);
?>