注册页面的编写
<!DOCTYPE HTML PUBLIC "-//W3C??DTD HTML 4.0 Transitional//EN> <html> <head> <title>注册</title> </head> <body> <form id="form" action="reg.php" method="post"> 用户名: <input id="username" name="username" type="test" value=" " /> 密码: <input type="password" id="pass" name="pass" size="15" maxlength="25" /><br /> 性别: <label for="sex">男</label> <input type="radio" value="1" id="sex" name="sex" /> <label for="sex">女</label> <input type="radio" value="2" id="sex" name="sex" /><br /> 爱好: <label for="fav">计算机</label> <input type="checkbox" value="1" id="fav" name="fav /> <label for="fav">旅游</label> <input type="checkbox" value="2" id="fav" name="fav /> <label for="fav">购物</label> <input type="checkbox" value="3" id="fav" name="fav /><br/> 工作满意度: <select size="1" id="select" name="select"> <option>很好</option> <option>一般般吧,还需要努力</option> <option>有很多问题,不过还可以</option> </select><br/> 所会的技术: <select size="5" id="select" name="select"> <option>XHTML</option> <option>CSS</option> <option>JAVA</option> <option>XML</option> <option>PHP</option> </select><br /> <input type="submit" value="注册" id="submit" name="submit" /> <input type="reset" value="重新填写" id="reset" name="reset"/> </form> </body> </html>