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:
Using Ajax with PHP to Create an Interactive Web Page
October 18, 2006 @ 14:41:00

PHPBuilder.com continues in their series of exceprt from the Sams Publishing book "PHP 5 in Practice" with this quick snippet showing how to create an interactive web application by combining PHP and Ajax.

A full discussion of Ajax is not within the scope of this book and would be mostly a discussion of JavaScript, not PHP. However, the listings in this section demonstrate one quick example that shows how Ajax can call a PHP script, pass it data, and display the results back to the user.

Their simple example makes a "time service" that can be pulled from any remote script (in the domain, of course). The PHP for the backend is simple - just echoing out the current time, and the HTML/Javascript is simple too, making a basic XMLHttpRequest call to the backend script.

0 comments voice your opinion now!
ajax interactive web page excerpt php5 time service tutorial ajax interactive web page excerpt php5 time service tutorial


blog comments powered by Disqus

Similar Posts

Spindrop.us: Digg-style AJAX comment editing in PHP/symfony

phpDevelopment Blog: Zend Framework Tutorial Series: Part 3 – Login and Signup with (RE)Captcha

PHP.net: 5.2.9-1 (for Windows) released

Tutorialzine.com: AJAX-enabled Sticky Notes With PHP & jQuery

Evolt.org: AJAX Login System using XMLHttpRequest


Community Events





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


version library interview voicesoftheelephpant introduction package framework release update community podcast laravel security tool composer mvc language opinion series symfony

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