Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Using Get and Post Methodology in AJAX Applications
Dec 17, 2008 @ 10:21:48

On the PHPBuilder.com site Anthony Corbelli has a new tutorial looking at the differences between using GET and POST in the context of an Ajax-enabled application.

GET is typically used when you simply need to retrieve data and POST is used when you want to change the state of the server (i.e. send/update data on the server). This article will discuss how we use GET and POST methodology in our Ajax applications!

Complete code for his examples is included - both the Javascript and PHP sides. His example handles both GET and POST requests the same way, returning the city and zip information.

tagged: ajax application tutorial methodology request method