Re: GET or POST method?



On Tue, 15 Jan 2008 Kurda Yon <kurdayon@xxxxxxxxx> wrote:
Hi,

I have to decide which form-method I should use (GET or POST). I found
the following recomendation:
If the service associated with the processing of a form has side
effects (for example, modification of a database or subscription to a
service), the method should be POST. (http://www.cs.tut.fi/~jkorpela/
forms/methods.html).

However, later I did not find any convinced arguments why it should
help (it can be that I just did not understand something).

So, I have decided not to go into the details of GET and POST methods
and just use POST. Is here any significant difference between GET and
POST which I should worry about (like security issues or something
else)? Or it is just question of convenience?

Use GET when your script is getting information to display to the user.
e.g. A product display get for product id=1, you want to GET the information.

Use POST when you are posting information back to the script to be manipulated
in some fashion.
e.g. Submitting a form with an email for subscription to a newsletter. You
want to POST the information to the script to be handled by a database of
some sort.

D.
--
Superman wears Paul O'Connell pyjamas.
.



Relevant Pages

  • Re: GET or POST method?
    ... I have decided not to go into the details of GET and POST methods ... Use GET when your script is getting information to display to the user. ... A product display get for product id=1, you want to GET the information. ... e.g. Submitting a form with an email for subscription to a newsletter. ...
    (comp.lang.php)
  • Re: Restore Replicated Database
    ... For the subscription script, I don't think I'll need to ... Once the restore of the database has taken place, I'll then run a script to ... DROP the publication and subscription. ... > want different agent profiles on each server and this is also something to ...
    (microsoft.public.sqlserver.replication)
  • Re: Annon Merge over VPN: WSM Insanity
    ... I can create the subscription through wizard. ... > Syncronization Manager synch works. ... I take it you are using SQL Authentication in WSM. ... > 2) I script the subscription created in 1). ...
    (microsoft.public.sqlserver.replication)
  • Re: Email Spam
    ... Does anyone know of a similar script that I ... So far the only php script I ... and my subscription (I think it's ... usenet access, too. ...
    (comp.lang.php)
  • Re: MSINFO32 Startup Programs
    ... If you have a current subscription to NAV/NIS, ... NAV resets the registry values incorrectly during the ... After running script and rebooting, ...
    (microsoft.public.windowsxp.accessibility)