Jump to content


Photo

Special reason for using GET method in form tag


  • Please log in to reply
1 reply to this topic

#1 api

api
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 06 October 2006 - 07:00 AM

can anyone tell me any special situation, when a GET method should be used but not POST method or vise-versa  in a form tag of a php file?????

thx in advance.

#2 Hi I Am Timbo

Hi I Am Timbo
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts

Posted 06 October 2006 - 07:17 AM

Basically, the get method appends the data to the URL, so, if that is useful to you (I.E. you want to parse the submission with javascript on the next page) you would want to use it, or if you wanted to be able to save the state of the form submission for the user.  Bookmarking a get submission allows returning to that state, but bookmarking a post submission does not.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users