请使用表格和表单设计用户注册页面,点击提交按钮后调用电子邮件代理软件将表单信息发送至指定的邮箱(写出HTML网页代码,包含文本域、单选按钮、复选框、下拉列表框、多选框、文件上传域、提交按钮)
时间: 2023-11-08 16:58:14 浏览: 76
将表单内容发送到指定E-Mail电子邮箱
5星 · 资源好评率100%
<!DOCTYPE html>
<html>
<head>
<title>User Registration</title>
</head>
<body>
<h1>User Registration Form</h1>
<form action="mailto:example@mail.com" method="post" enctype="text/plain">
<table>
<tr>
<td>Full Name:</td>
<td><input type="text" name="fullname" required></td>
</tr>
<tr>
<td>Gender:</td>
<td>
<input type="radio" name="gender" value="male" required>Male
<input type="radio" name="gender" value="female" required>Female
</td>
</tr>
<tr>
<td>Interests:</td>
<td>
<input type="checkbox" name="interests[]" value="reading">Reading
<input type="checkbox" name="interests[]" value="traveling">Traveling
<input type="checkbox" name="interests[]" value="cooking">Cooking
</td>
</tr>
<tr>
<td>Country:</td>
<td>
<select name="country" required>
<option value="">Select a country</option>
<option value="USA">USA</option>
<option value="Canada">Canada</option>
<option value="UK">UK</option>
</select>
</td>
</tr>
<tr>
<td>Languages:</td>
<td>
<select name="languages[]" multiple required>
<option value="english">English</option>
<option value="french">French</option>
<option value="spanish">Spanish</option>
</select>
</td>
</tr>
<tr>
<td>Photo:</td>
<td><input type="file" name="photo"></td>
</tr>
</table>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
阅读全文