请使用表格和表单设计用户注册页面,点击提交按钮后调用电子邮件代理软件将表单信息发送至指定的邮箱(写出HTML网页代码,包含文本域、单选按钮、复选框、下拉列表框、多选框、文件上传域、提交按钮)
时间: 2023-11-08 14:58:14 浏览: 60
将表单内容发送到指定E-Mail电子邮箱
5星 · 资源好评率100%
<!DOCTYPE html>
<html>
<head>
<title>User Registration</title>
</head>
<body>
<h1>User Registration</h1>
<form action="mailto:example@example.com" method="post">
<table>
<tr>
<td>Full Name:</td>
<td><input type="text" name="fullname"></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="email" name="email"></td>
</tr>
<tr>
<td>Gender:</td>
<td>
<input type="radio" name="gender" value="Male">Male
<input type="radio" name="gender" value="Female">Female
</td>
</tr>
<tr>
<td>Interests:</td>
<td>
<input type="checkbox" name="interests[]" value="Sports">Sports
<input type="checkbox" name="interests[]" value="Music">Music
<input type="checkbox" name="interests[]" value="Art">Art
</td>
</tr>
<tr>
<td>Country:</td>
<td>
<select name="country">
<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>
<option value="English">English</option>
<option value="Spanish">Spanish</option>
<option value="French">French</option>
</select>
</td>
</tr>
<tr>
<td>Resume:</td>
<td><input type="file" name="resume"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
</body>
</html>
阅读全文