28 lines
720 B
PHP
28 lines
720 B
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>登录</title>
|
|
</head>
|
|
<body>
|
|
<form method="post" action="#" name="form1">
|
|
<table>
|
|
<tr>
|
|
<td><label for="username1">用户名</label></td>
|
|
<td><input type="text" name="username" id="username1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="password1">密码</label></td>
|
|
<td><input type="password" name="password" id="password1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" style="text-align: center"><input type="submit" value="提交"></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<?php
|
|
foreach ($_POST as $item => $value){
|
|
echo "$item:$value".'<br>';
|
|
}
|
|
?>
|
|
</body>
|