Blogger Information
Blog 44
fans 0
comment 1
visits 31062
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
3月19日作业
时光记忆的博客
Original
642 people have browsed it

今天是第三天在php中文网学习!

代码:

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>3-2:实战用表格布局来实现用户注册表单</title>
</head>
<body>
	<form action="" method="post">
		<table border="0" cellspacing="0" cellpadding="8" bgcolor="powderblue" align="center" width="400" >
			<caption><h2>用户注册</h2></caption>
				
			<tr><td colspan="2"><hr></td></tr>

			<tr align="center">
				<td align="right"><label for="email">邮箱:</label></td>
				<td align="left"><input type="text" id="email" name="email" placeholder="example@php.cn" size="30"></td>
			</tr>

			<tr align="center">
				<td align="right"><label for="password">密码:</label></td>
				<td align="left"><input type="password" id="password" name="password" placeholder="字母+数字不少于8位" size="30"></td>
			</tr>

			<tr align="center">
				<td align="right">性别:</td>
				<td align="left">
					<input type="radio" name="sex" >男
					<input type="radio" name="female" >女
					<input type="radio" name="secret" checked="">保密
				</td>
			</tr>

			<tr align="center">
				<td align="right">兴趣:</td>
				<td align="left">
					<input type="checkbox" name="hobby[]" value="html" >HTML
					<input type="checkbox" name="hobby[]" value="css" >CSS
					<input type="checkbox" name="hobby[]" value="javascript">JavaScript
					<input type="checkbox" name="hobby[]" value="php" checked="">PHP
				</td>
			</tr>

			<tr align="center">
				<td align="right">级别:</td>
				<td align="left">
					<select name="level">
						<option value="0">我是零基础的小白</option>
						<option value="1">已经入门了</option>
						<option value="2" selected="">做过一些项目</option>
						<option value="3">已经是大神了</option>
					</select>					
				</td>
			</tr>

		-*
			<tr align="center">
				<td align="right"><label for="comment">简介:</label></td>
				<td align="left"><textarea rows="5" cols="40" type="text" id="comment" name="comment" placeholder="文明上网,理性发言"></textarea></td>
			</tr>

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


	</form>
</body>
</html>

运行实例 »

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

11.jpg22.jpg


Correction status:Uncorrected

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