|
Posted by David Gillen on 11/12/62 12:00
On Tue, 15 Jan 2008 Kurda Yon <kurdayon@yahoo.com> 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.
Navigation:
[Reply to this message]
|