Blogger Information
Blog 26
fans 0
comment 0
visits 16610
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
第三次作业
瘦不下来的博客
Original
548 people have browsed it

网络课程第三次作业:登记表


代码:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学员登记</title>
</head>
<body>

<form action="do.php" method="post">



<table border="0" cellspacing="0" cellpadding="8" width="400" bgcolor="skyblue">


<caption><h2>学员登记</h2></caption>

<tr>
<td colspan="2"><hr></td>

</tr>  <!-- 此行代码就是画一条分隔线没有其它用处 -->

<tr>
<td width="60"><label for="ID">账号:</label></td>
<td width="300"><input type="text" id="ID" name="ID" value="" placeholder="姓名" size="30" width="200"></td>
</tr>

<tr>
<td><label for="password">密码:</label></td>
<td><input type="text" id="password" name="password" value="" placeholder="不少于8位" size="30"></td>
</tr>

<tr>  
<td>性别:</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><label for="level">级别:</label></td>
<td>
<select name="level" id="level">
<option value="">普通学员</option>
<option value="" selected="">中级学员</option>
<option value="">高级学员</option>
<option value="">究极学员</option>
</select>
</td>




             <!-- []数组,多选后提交的多个数据组成一个数组 -->

<tr>
<td>特长:</td>   
<td>
<input type="checkbox" name="speciality[]" value="run">跑步
<input type="checkbox" name="speciality[]" value="basketball">篮球
<input type="checkbox" name="speciality[]" value="football">足球
<input type="checkbox" name="speciality[]" value="sleep" checked="">睡觉
</td>
</tr>




<tr>
<td><label for="photo">头像:</label></td>
<td>
<img src="../image/8.jpg" height="30">
<input type="file" id="photo" name="photo" accept="image/*">
</td>
</tr>

<tr>
<td valign="middle">简介:</td>
<td><textarea name="comment"  rows="5" cols="40" placeholder="实事求是"></textarea></td>
</tr>

<tr>
<td colspan="2">
<hr>

<input type="submit" name="submit" value="提交">
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" name="reset" value="重填">
</td>
</tr>

</table>


</form>

</body>
</html>

手抄:

1.png


微信图片_20180320002614.jpg

3.png



















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