homepage Welcome to WebmasterWorld Guest from 50.19.169.37
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP AJAX POST or GET
xmlHttp.open("GET/POST",url,true)
HeadBut




msg:3067631
 5:00 pm on Aug 31, 2006 (gmt 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?

 

coopster




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved