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, Part 2
May 05, 2008 @ 07:58:21

PHPBuilder.com has continued their series looking at building an Ajax-driven shopping cart with part two posted today (part one here). Last time they laid the PHP foundation for the example app, this time they add another layer - the Ajax functionality to manage the current contents of the cart.

Finally, a link to the shopping cart is provided, although you could just as easily have displayed the cart contents on the same page. For the sake of brevity I'll just show you how to integrate the add feature, and will leave the subtraction mechanism to you as an exercise.

The Ajax frontend calls a managecart.php backend file that calls addToCart and deleteFromCart based on which type of "task" is passed to it.

1 comment voice your opinion now!
shopping cart prototype tutorial ajax backend javascript


blog comments powered by Disqus

Similar Posts

Web Development Blog: PHP Mail Scripts using SMTP transport, a guide for beginners

Rob Allen's Blog: Zend Framework Tutorial Update & Autoloader Gotcha

PHPBuilder.com: Beginning Ajax with PHP: From Novice to Professional, Part 2

DevShed: Controlling Online Forms with Builder Objects in PHP 5 (Part 2)

Jurriaanpersyn.com: Ajax/PHP-powered Sudoku Helper


Community Events





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


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

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