Form元素示例
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> </head> <body> <form name="form1" method="post" action=""> 用户名:<input type="text" name="username" /><br /> 密码:<input type="password" name="password" /> <h3>性别</h3> <input type="radio" checked="checked" name="radio" value="1" />男 <input type="radio" name="radio" value="0" />女 <h3>爱好</h3> <input type="checkbox" name="check" checked value="1" />打篮球 <input type="checkbox" name="check" value="2" />看电视 <input type="checkbox" name="check" value="3" />上网 <input type="hidden" name="hidden" value="这是一个隐藏域内容" /> <br /> <br /> <br /> <textarea name="textarea" cols="40" rows="4">文本域初始内容</textarea> <br /> <br /> <br /> <select name="select" > <option value="1" selected>《PHP范例宝典》</option> <option value="2">《PHP典型模块开发》</option> </select> <br /> <br /> <br /> <select name="select" multiple="multiple" size="5"> <option value="1" selected>《PHP典型模块开发1》</option> <option value="2">《PHP典型模块开发2》</option> <option value="3">《PHP典型模块开发3》</option> <option value="4">《PHP典型模块开发4》</option> <option value="5">《PHP典型模块开发5》</option> <option value="6">《PHP典型模块开发6》</option> <option value="7">《PHP典型模块开发7》</option> <option value="8">《PHP典型模块开发8》</option> <option value="9">《PHP典型模块开发9》</option> <option value="0">《PHP典型模块开发0》</option> </select> </form> </body> </html>
----------------
Lynx
The quieter you become,the more you are able to hear.