Blogger Information
Blog 10
fans 0
comment 0
visits 5257
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
0722作业2
狗子的博客
Original
519 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>Title</title>
</head>
<body>
<form action="" method="post">

   用户名 :<input type="text" name="username" value="<?php echo $_POST['username']??'';?>"><br>
   密码 : <input type="password" name="password" value="<?php echo $_POST['password']??'';?>"><br>
   <button type="submit">提交</button>


</form>
<?php echo $_POST['username']??'';?>

<?php echo $_POST['password']??'';?>

</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="get">

    用户名 :<input type="text" name="username" value="<?php echo $_GET['username']??'';?>"><br>
    密码 : <input type="password" name="password" value="<?php echo $_GET['password']??'';?>"><br>
    <button type="submit">提交</button>


</form>
<?php echo $_GET['username']??'';?>

<?php echo $_GET['password']??'';?>

</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:qualified

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