Forum Moderators: coopster

Message Too Old, No Replies

PHP AJAX POST or GET

xmlHttp.open("GET/POST",url,true)

         

HeadBut

5:00 pm on Aug 31, 2006 (gmt 0)

10+ Year Member



I always thought a GET was for just GETting info and POST was for POSTing a new record to the Db/Site/Server. I've been trying to learn AJAX and it seems to use both the $_POST and $_GET vars no mater which I use: xmlHttp.open("GET",url,true) or xmlHttp.open("POST",url,true)
So, my question is, What is the difference and which should I use?

coopster

3:22 pm on Sep 7, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The two options are from the "method" attribute of the <form> element.
[w3.org...]