Re: GET or POST method?
- From: David Gillen <belial@xxxxxxxxxxxxxxx>
- Date: 15 Jan 2008 11:12:42 GMT
On Tue, 15 Jan 2008 Kurda Yon <kurdayon@xxxxxxxxx> wrote:
Hi,Use GET when your script is getting information to display to the user.
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?
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.
.
- Follow-Ups:
- Re: GET or POST method?
- From: The Natural Philosopher
- Re: GET or POST method?
- References:
- GET or POST method?
- From: Kurda Yon
- GET or POST method?
- Prev by Date: Re: problems with $_FILES
- Next by Date: Re: problems with $_FILES
- Previous by thread: Re: GET or POST method?
- Next by thread: Re: GET or POST method?
- Index(es):
Relevant Pages
|