关于注册表单

来源:互联网 发布:apache python wsgi 编辑:程序博客网 时间:2024/05/19 19:39

最近学习了js中DOM操作,但是一时心起试试写个学习的注册表单,结果杯了个具的~!!

遇到了很多错误,在这记录一下~!!

额~!!用时15分钟写的~!!您别笑,初次写,而且是新手学习期。。嘿嘿~!贴代码?

手写吧~!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"><head><title>表单验证</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="description" content="" /><meta name="keywords" content="" /><style type="text/css">textarea { border:solid 1px pink; width:200px; height:100px;} </style> </head> <body> <h1>表单验证</h1> <form mthod="GET"> <p>用户名:<input type="text" name="shuru" value="请输入您的内容"/></p> <p>密码:  <input type="password" name="ps" /></p> <p>性别:</p> <p>男<input type="radio" name="xingbie" value="男" /> 女<input type="radio" name="xingbie" value="女" /> </p> <p>爱好</p> <p>篮球:<input type="checkbox" name="like" value="篮球"> 足球:<input type="checkbox" name="like" value="足球"> 拍球:<input type="checkbox" name="like" value="拍球"> 台球:<input type="checkbox" name="like" value="台球"> </p> <p>上传头像:<input type="file" name="imag" value="上传头像"></p> <p> <select name="sel"> <option value="0">请选择您的学历</option> <option value="小学">小学</option> <option value="高中">高中</option> <option value="大学">大学</option> </select> </p> <p><textarea name="te">请输入个人介绍</textarea></p> <p><input type="submit" name="zhuce" value="确认注册" /> <input type="reset" value="重新填写"/> </p> </form> </body> </html>
好吧,刚开始运行时就出状况了。。。dom