博客列表 >【3.19】PHP作业

【3.19】PHP作业

51靓号网-专注QQ靓号十年精品
51靓号网-专注QQ靓号十年精品原创
2018年03月20日 02:12:59541浏览

QQ截图20180320021223.png

QQ图片20180320195620.jpg

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用户注册</title>
</head>
<body>
	<form action="" method="post">
	     <table border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="lightyellow">
	         <caption><h3>用户登记表</h3></caption>
	         <tr>
                 <td colspan="2"><hr></td>
	         </tr>
             <tr align="center">
                 <td align="center" width="100"><label for="name">名字:</label></td>
                 <td><input type="text" id="name" name="name" value="" placeholder="张三李四王五" size="35" width="250"></td>
             </tr>

             <tr align="center">
                 <td align="center" width="100"><label for="email">邮箱:</label></td>
                 <td><input type="text" id="email" name="email" value="" placeholder="88888@mail.com" size="35" width="250"></td>
             </tr>

             <tr align="center">
                 <td align="center" width="100"><label for="password">密码:</label></td>
                 <td><input type="password" id="password" name="password" value="" placeholder="字母+数字不少于8位" size="35" width="250"></td>
             </tr>

             <tr align="center">
                 <td align="center" width="100">性别:</td>
                 <td align="left"><input type="radio" name="sex" value="male" size="35" checked="">男
                     <input type="radio" name="sex" value="famale" size="35">女
                     <input type="radio" name="sex" value="male" size="35">中性
                 </td>
             </tr>

             <tr align="center">
                 <td align="center" width="100">技能:</td>
                 <td align="left"><input type="checkbox" name="jineng[]" value="shiwan">十万伏特
                     <input type="checkbox" name="jineng[]" value="zhuangji">撞击
                     <input type="checkbox" name="jineng[]" value="jianjiao">尖叫
                 </td>
             </tr>

             <tr align="center">
                 <td align="center" width="80">等级:</td>
                 <td align="left">
                     <select name="level" id="level">
                          <option value="">LV.1</option>
                          <option value="">LV.2</option>
                          <option value="">LV.3</option>
                          <option value="">LV.4</option>
                          <option value="" selected="">LV.5</option>
                     </select>
                 </td>
             </tr>

             <tr align="center">
                 <td align="center" width="80">头像:</td>
                 <td align="left">
                     <img src="images/2.jpg" height="15" alt="">
                     <input type="file" id="photo" accept="image/*">
                 </td>
             </tr>

             <tr align="center">
                 <td align="center" width="80"><label for="comment">说点啥:</label></td>
                 <td align="left"><textarea name="comment" id="comment" cols="40" rows="10" placeholder="你倒是说啊"></textarea></td>
             </tr>

             <tr align="center">
             
                 <td colspan="2"><hr><input type="submit" name="submit" value="登记">
                    
                 <input type="reset" name="reset" value="重置">
                 </td>
             </tr>
	     </table>
	</form>
</body>
</html>

运行实例 »

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


声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议