实例
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>用户注册表单</title> </head> <body> <form action="" method="post"> <table border="0" cellspacing="0" cellpadding="8" align="center" width="500" bgcolor="skeyblue"> <caption><h2>会员注册系统</h2></caption> <tr><td colspan="2"><hr></td></tr> <tr align="center"> <td align="right"><label for="name">姓名:</label></td> <td align="left"><input type="text" id="name" name="name" value="" placholder="不少于6个字符" size="30" width="200" </td> <tr align="center"> <td align="right">性别:</td> <td align="left"> <input type="radio" name="sex" value="wman" checked="">男 <input type="radio" name="sex" value="man">女 <input type="radio" name="sex" value="secret" >保密 </td> </tr> <tr align="center"> <td align="right">婚否:</td> <td align="left"> <input type="radio" name="hunfou" value="yihun" checked="">已婚 <input type="radio" name="hunfou" value="weihun">未婚 </td> </tr> <tr align="center"> <td align="right" width="60"><label for="emil">邮箱注册:</label></td> <td align="left" width="300"><input type="text" id="emil" name="emil" value="" placeholder="example@mail.com" size="30" width="200"></td> </tr> <tr align="center"> <td align="right"><label for="password">设置密码:</label></td> <td align="left"><input type="text" id="password" name="name" value="" placeholder="6-20位可以用字母(区分大小写),数字和符号" size="30"></td> </tr> <tr align="center"> <td align="right"><label for="password">确认密码:</label></td> <td align="left"><input type="text" id="password" name="name" value="" placeholder="请再次输入密码" size="30"></td> </tr> <tr align="center"> <td align="right"><label for="password">邮箱验证码:</label></td> <td align="left"><input type="text" id="password" name="name" value="" placeholder="" size="8" ></td> </tr> <tr align="center"> <td align="right">获取方式:</td> <td align="left"> <input type="checkbox" name="happy[]" value="meiti" checked="">媒体 <input type="checkbox" name="happy[]" value="baokan">报刊 <input type="checkbox" name="happy[]" value="pyjs">朋友介绍 <input type="checkbox" name="happy[]" value="guanggao">广告 </td> </tr> <tr align="center"> <td align="right"><label for="level">选择级别:</label></td> <td align="left"> <select name="level" id="level"> <option value="">白金会员</option> <option value="" selected="">黄金会员</option> <option value="">一级会员</option> <option value="">普通会员</option> </select> </td> </tr> <tr align="center"> <td align="right"><label for="photo">头像:</label></td> <td align="left"> <img src="./img/1.png" height="30"> <input type="file" id="" name="photo" accept="image/*"> </td> </tr> <tr align="center"> <td valign="middle" align="right"><label>自己的愿望:</label></td> <td align="left"><textarea name="comment" id="comment" rows="5" cols="40" placeholder="描述下自己"></textarea></td> </tr> <tr align="center"> <td align="right"></td> <td align="left"> <input type="checkbox" name="happy[]" value="read" ="">我已阅读并接受《此系统的相关条约》 </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>
运行实例 »
点击 "运行实例" 按钮查看在线实例
老师你好!手写的我下班回家了补上去,