GET and POST methods, which is better?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

GET and POST methods, which is better?

Post by nigma »

If anyone has experience with both could you tell my why you prefer one or the other?

Thanks a bunch.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

That depends very much how your server is configured and what your intentions are. GET posts in the location-bar - so it could easily be modified - while POST does that "silently".

There are viable uses for both, although I personally prefer POST as I am all for keeping the location-bar clean :)
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Thanks a bunch, I definetely apreciate the help.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

There's a limit to what you can send by GET as well which can make POST the only choice sometimes. Although I'll often use the two together by using the POST method in the form and attaching some variables to the query string of the action page.

Code: Select all

<form method="post" action"page.php?foo=bar">
Mac
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

If you upload files (binary), then your limmited to post asswel.
Post Reply