表单的提交方式有get和post两种:
一般post提交的比较多,两者在使用时有一个明显的区别就是:使用get提交时,提交的内容会显示在地址栏之后,而使用post请求提交。提交的内容是不会显示在地址栏的。
例如:
(get请求):http://localhost:8080/requestdemo/request_domain1.jsp?infeo=LiMing
(post请求):http://localhost:8080/requestdemo/request_domain1.jsp
注:直接输入地址访问页面本身就属于get提交方式,而post只是应用在表单的描述,相对来说,post请求要比get请求要安全一些,所以建议使用post请求。