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:
Developing a Ajax-driven Shopping Cart with PHP and Prototype
April 29, 2008 @ 08:48:31

On PHPBuilder.com today there's a new tutorial posted showing how to combine the Javascript power of Prototype along side PHP's adaptability to create a simple, ajax-driven shopping cart for your site.

In the latest installment of this ongoing PHP series, I'll show you how to build a shopping cart using PHP, session handling, and the Prototype JavaScript library. The cart allows users to add and delete products from the cart, as well as change cart quantities. And of course, the interaction is seemingly instantaneous, allowing for the user to continue shopping without waiting for the page to reload.

They start from the ground up - making the database tables, inserting some data - before writing up the simple PHP class with methods like deleteFromCart and getCart. This lays the foundation for the next article in the series where they add in a splash of ajax to make it a bit more user-friendly.

0 comments voice your opinion now!
shoppingcart ajax prototype tutorial series


blog comments powered by Disqus

Similar Posts

Zumba Fitness Engineering: Using Application Events to Hook in Plugins

PHPMaster.com: Extract an Excerpt from a WAV File

Oracle Technology Network: DeployPHP Series, Part 5 - Zend Core for Oracle Quick Start

Jani Hartikainen's Blog: Making a PDF generator class using Zend_Pdf

Chris Hartjes' Blog: Tutorial: How to create a thread in vBulletin with a script


Community Events





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


laravel code threedevsandamaybe list community voicesoftheelephpant zendserver interview bugfix podcast conference framework series language symfony introduction tips deployment api release

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