1表单:
//name 和 id 属性的区别:id前端区分唯一性,js使用;name后端使用,提交数据后通过name获取值,所以那么必须存在 <form method="post" action="http://localhost:80/index.html"> name:<input type="text" name="uname" id="uname"/> pass:<input type="password" name="pwd" id="pwd"/> <input type="submit" value="login"/> </form>
原文:http://www.cnblogs.com/straybirds/p/6250916.html