<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>表格</title>
<style>
.f{
width:300px;
height:600px;
border:cadetblue 2px;
}
</style>
</head>
<body>
<form action="./bd.php" method="POST" enctype="multipart/form-data" >
<!-- cellspacing="0px" 边框与边框距离 -->
<table border="1px" align="center" width="auto" height="50px" cellspacing="0px" cellpadding="0px">
<tr>
<th>
用户:
</th>
<td>
<input type="text" name="name" placeholder="请输入用户名">
</td>
</tr>
<tr>
<th>
密码:
</th>
<td>
<input type="password" name="password" >
</td>
</tr>
<tr>
<th>
性别:
</th>
<td>
<input type="radio" name="xingbie" value="nv">女
<input type="radio" name="xingbie" value="nan" checked>男
</td>
</tr>
<tr>
<th>
兴趣爱好:
</th>
<td>
<input type="checkbox" name="robbie" value="lq" checked>篮球
<input type="checkbox" name="robbie" value="zuqiu" checked>足球
<input type="checkbox" name="robbie" value="paiqiu">排球
<input type="checkbox" name="robbie" value="pingpang">乒乓球
</td>
</tr>
<tr>
<th>
城市:
</th>
<td>
<select name="table">
<option value="tj">天津</option>
<option value="sh">上海</option>
<option value="bj">北京</option>
</select>
</td>
</tr>
<tr>
<th>
个人介绍:
</th>
<td>
<textarea name="text">helloword</textarea>
</td>
</tr>
<tr>
<th>
头像:
</th>
<td>
<input type="file" name="touxiang" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="提交">
</td>
</tr>
</table>
</form>
</table>
<br>
<br>
<br>
<br>
<br>
<table border="1px" cellspacing="0px" align="center" v-align="middle" cellpadding="0px" width="500px" height="300px" >
<caption>健康资料表</caption>
<tr align="center" v-align="middle" >
<th>姓名</th>
<th>老王</th>
<th>电话</th>
<th colspan="2" align="center">18812341234</th>
</tr>
<tr align="center" v-align="middle" >
<td rowspan="2">有房</td>
<td>有车</td>
<td colspan="2" align="center">身体健康状况</td>
<td>吃啥啥香</td>
</tr>
<tr align="center" v-align="middle" >
<td>年份</td>
<td>2017</td>
<td>2018</td>
<td>2019</td>
</tr>
</table>
</body>
</html>
– PHP 文件啊
<?php var_dump($_GET); var_dump($_POST); var_dump($_FILES);