Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a question that is going to make me look stupid, but as I am new to  
html and php (2 months), I'll as it anyway.

I have been using POST as the action and to get values that were input.  I  
understand that GET could also be used as the action (not just to get stuff  
after the "?" which I understand).

a. When should GEt be used and when should POST be used?
b. What is the difference between the two?



Re: GET and POST


Quoted text here. Click to load it

 Over to the standard which has a brief explanation:

< Space: disk usage analysis tool

Re: GET and POST

Shelly wrote:

Quoted text here. Click to load it

The choice between the two rests on the test of 'idempotency',  
in an ideal world.  Our world isn't ideal, however, and there  
are other things to ask yourself.  How much weight you attach  
to each consideration depends on the scenario.  A good  
description of some things to take into account is

Quoted text here. Click to load it

With respect to the methods themselves, the HTTP draft answers  
that.  How they relate to HTML forms is covered in the HTML  
spec.  Tim and Andy gave the links.


Site Timeline