看到很多资料说表单form里get与post区别之一是:
get是从服务器上取得数据,post是向服务器上传送数据。我不明白的是, 用form不都是向服务器提交传送数据么? 那怎么这里说get是从服务器上取得数据呢??

解决方案 »

  1.   

    是谁告诉你“get是从服务器上取得数据”的?HTTP-GET和HTTP-POST是使用HTTP的标准协议动词,用于编码和传送变量名/变量值对参数,并且使用相关的请求语义。
      

  2.   

    HTTP-GET和HTTP-POST是使用HTTP的标准协议动词,用于编码和传送变量名/变量值对参数,并且使用相关的请求语义。
    都是提交数具的。只不过各有个的局限。
      

  3.   

    呵呵 四楼说错了吧 应该是都是发送数据到服务器的
    只是方式不同 ,能发送的数据量不同 ,安全性也不同
    post安全性比get好一点 
      

  4.   

    get是通过 浏览器地址 表单 传数据,是明传
    post是通过表单传入,是暗传在ajax时候看不出明暗传另外区别还有一个,也是比较重要的就是字符限制,get方式限制很严格,服务器端看服务器配置,貌似是8k的限制,但浏览器一般限制值是200多字符还是2000多字符,我忘记了post的限制比这个数量大很多,所以如果是表单,尽量用post
      

  5.   

    都是翻译的问题。
    The HTML specifications technically define the difference between "GET" and "POST" so that former means that form data is to be encoded (by a browser) into a URL while the latter means that the form data is to appear within a message body. But the specifications also give the usage recommendation that the "GET" method should be used when the form processing is "idempotent", and in those cases only. As a simplification, we might say that "GET" is basically for just getting (retrieving) data whereas "POST" may involve anything, like storing or updating data, or ordering a product, or sending E-mail.http://www.cs.tut.fi/~jkorpela/forms/methods.html#fund
      

  6.   

    get是附加到url后传数据,数据量小,不安全,
    post是把数据隐藏到内部,安全,数据量大,