1、GET请求的方式
方式一:在浏览器直接输入URL方式的访问 方式二:form表单的形式 <form action="xxx" method="get"> 用户名:<input type="text" name="username" /><br/> 密码:<input type="password" name="password" /><br/> <input type="submit" value="登录" /> </form> 方式三:超链接方式 <a href="http://www.qq.com">腾讯首页</a>
2、POST请求的方式
方式一:form表单的形式 <form action="xxx" method="post"> 用户名:<input type="text" name="username" /><br/> 密码:<input type="password" name="password" /><br/> <input type="submit" value="登录" /> </form>