Welcome to WebmasterWorld Guest from 50.16.78.128

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP AJAX POST or GET

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

   
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?
3:22 pm on Sep 7, 2006 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month