October 17th, 1999, 12:42 PM
Riddle me this:
When should I use GET and when should I use POST in my forms? I'm using PHP to perform my database reading/writing. Until now, I've just used POST, but I'd like to understand better what the advantages and disadvantages are for each method.
I'm going to go sign up for the PHP mailing list at
and post the same question there, so I apologize to anyone who ends up reading this twice.
October 17th, 1999, 01:09 PM
If you use GET then the url of the output page will end ?field1=value1&field2=value2 and so on. POST does not have this.
Basically you use GET when you want people to be able to edit what they have put in the form without returning to the page, or to be able to bookmark that page, and you use POST to make the URL look neat and stop people from bookmarking the url.
October 19th, 1999, 04:26 PM
Get is also much more limited in the number of characters you can use. I don't remember the exact number but Post is used when you have a large number of charactors to pass.