Welcome to WebmasterWorld Guest from 54.196.84.221

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)

Junior Member

10+ Year Member

joined:Sept 2, 2004
posts:187
votes: 0


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 Sept 7, 2006 (gmt 0)

Administrator

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

joined:July 31, 2003
posts:12541
votes: 1


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