新建PHP文件,创建以下表单包含姓名,性别,出生年月,爱好,地址,电话,qq,自我评价
时间: 2024-06-11 17:07:30 浏览: 71
<!DOCTYPE html>
<html>
<head>
<title>个人信息表单</title>
</head>
<body>
<h1>个人信息表单</h1>
<form action="submit.php" method="post">
<label>姓名:</label>
<input type="text" name="name" required><br><br>
<label>性别:</label>
<input type="radio" name="gender" value="male" required>男
<input type="radio" name="gender" value="female" required>女<br><br>
<label>出生年月:</label>
<input type="date" name="birthday" required><br><br>
<label>爱好:</label>
<input type="checkbox" name="hobby[]" value="reading">阅读
<input type="checkbox" name="hobby[]" value="music">音乐
<input type="checkbox" name="hobby[]" value="sports">运动
<input type="checkbox" name="hobby[]" value="travel">旅游<br><br>
<label>地址:</label>
<input type="text" name="address" required><br><br>
<label>电话:</label>
<input type="tel" name="phone" required><br><br>
<label>QQ:</label>
<input type="text" name="qq" required><br><br>
<label>自我评价:</label><br>
<textarea name="comment" rows="5" cols="40" required></textarea><br><br>
<input type="submit" value="提交">
</form>
</body>
</html>
阅读全文