News Feed
Sections




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

PHPBuilder.com:
AJAX and PHP Part 3 - Post vs. Get Requests
August 01, 2007 @ 09:27:00

PHPBuilder.com has posted part three of their series looking at building a simple site using PHP and Ajax - this time with a focus on using the POST method instead of GET to push the data back and forth from client to server.

The advantage of this is primarily security, however you often can send larger amounts of data with the POST method as well (but that is dependent on your server configuration rather it be Apache/PHP, Microsoft/IIS, or Java/J2EE, etc). The primary advantage of POST is again, the security of the communication, because often log files on the web server will log the AJAX GET request data because that data is part of a URL in the request. This does not occur with the AJAX POST request.

They start with a simple example of the POST request type, pulling data from a form (address/city/state/etc) and pushing it to the backend script. They follow this by picking it apart, explaining each of the sections of code for a better understanding.

1 comment voice your opinion now!
ajax tutorial post get request address ajax tutorial post get request address


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Private Composer Packages with Gemfury

9Lessons.info: Facebook Style Tag Friends with Jquery, Ajax and PHP

Pro-PHP Podcast: Interview with Jim Plush of Panasonic

PHPFreaks.com: Template based document generation using LiveDocx and Zend Framework

Job Posting: 65media Seeks PHP/MySQL Developer (Marina del Rey, CA)


Community Events

Don't see your event here?
Let us know!


series security api interview language threedevsandamaybe introduction extension framework symfony laravel5 release podcast laravel unittest community version opinion voicesoftheelephpant library

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework