PHP学习,form中post传值
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="1.php" method="post">
<label for="username">用户</label>
<input type="text" id="username" name="username">
<label for="password">密码</label>
<input type="text" id="password" name="password">
<br>
<button>提交</button>
<?php
echo ‘<br>‘.$_POST[‘username’].’后面密码’.$_POST[‘password’];
?>
</form>
</body>
</html>