Blogger Information
Blog 15
fans 0
comment 1
visits 7917
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
3.19作业
银河的博客
Original
526 people have browsed it

作业代码:

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用户注册</title>
</head>
<body>
	<form action="" method="post">
		<table align="center" border="0" cellspacing="0" cellpadding="10" width="400" bgcolor="#FFE5CD">
			<caption><h3>用户注册</h3></caption>
			<tr><td colspan="2"><hr></td></tr>
			<tr>
				<td width="60" align="right">邮箱:</td>
				<td width="320" align="left">
					<input type="text" name="mail" value="" placeholder="请输入邮箱地址" width="320" size="30">
				</td>
			</tr>
			<tr>
				<td align="right">密码:</td>
				<td>
					<input type="password" name="password" width="200" align="left" placeholder="字母+数字不能超过16位" size="30" >
				</td>
			</tr>
			<tr>
				<td align="right">性别:</td>
				<td>
					<input type="radio" name="sex" value="male">男
					<input type="radio" name="sex" value="female">女
					<input type="radio" name="sex" value="secret" checked="">保密
				</td>
			</tr>
			<tr>
				<td align="right">兴趣:</td>
				<td>
					<input type="checkbox" name="hobby[]" value="hmtl" checked="">HTML
					<input type="checkbox" name="hobby[]" value="css" >CSS
					<input type="checkbox" name="hobby[]" value="js" >JS
					<input type="checkbox" name="hobby[]" value="php" >PHP
				</td>
			</tr>
			<tr>
				<td align="right">职业:</td>
				<td>
					<select name="occupation" >
						<option value="1" selected="">学生</option>
						<option value="2">工人</option>
						<option value="3">白领</option>
					</select>
				</td>
			</tr>
			<tr>
				<td align="right">头像:</td>
				<td align="center">
					<input type="file" name="photo" accept="../mage/*.*">
				</td>
			</tr>
			<tr>
				<td align="right">备注:</td>
				<td>
					<textarea name="comment" cols="40" rows="5" placeholder="字数不能少于10个字"></textarea>
				</td>
			</tr>
			
			<tr>

				<td colspan="2" align="center">
					<hr>
					<input type="submit" name="submit" value="提交">       
					<input type="submit" name="submit" value="重填">

				</td>
				
			</tr>
		</table>
	</form>

</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:qualified

Teacher's comments:手写代码记得提交一下!
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post