Back to article

Video: Passing Data Between PHP and JavaScript Using JSON

February 5, 2010

Got seven minutes to learn how you can harness the power of PHP, JavaScript and JSON in a powerful AJAX-driven web application? This Video tutorial shows you all you need to know to pass data between the client and server using JSON data format.

After a brief introduction to JSON (JavaScript Object Notation), noted author and PHP Guru Jason Gilmore demonstrates how to implement an end-to-end web solution that involves the following steps:

  1. A user initiates a request for book-related data from a jQuery-enhanced web page.
  2. PHP responds to this request by converting an array to JSON format and sending the response to the Ajax-enabled web page.
  3. jQuery decodes the JSON-formatted data and updates the web page.

View the entire seven-minute video tutorial at
Passing Data Between PHP and JavaScript Using JSON

Sitemap | Contact Us

Thanks for your registration, follow us on our social networks to keep up-to-date