Blogger Information
Blog 21
fans 0
comment 0
visits 20359
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
get/post方式
电动机的博客
Original
844 people have browsed it

<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);
?>

Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post