basic-php-15-modcart.php / php
<?php session_start(); _POST['qty'])) { _POST['qty']; } if (isset(prodnum = _POST['modified_hidden'])) { _POST['modified_hidden']; } if (isset(modified_quan = sess = session_id(); _REQUEST['action']; switch (query = "INSERT INTO carttemp ( carttemp_sess, carttemp_quan, carttemp_prodnum) VALUES ('qty','message = "<div align=\"center\"><strong>Item added.</strong></div>"; break; case "change": modified_quan' WHERE carttemp_hidden = 'message = "<div align='center'><strong>Quantity changed.</strong></div>"; break; case "delete": modified_hidden'"; <div align='center'><strong>Item deleted.</strong></div>"; break; case "empty": query = "DELETE FROM carttemp WHERE carttemp_sess = 'message = "<div align='center'><strong>Cart emptied.</strong></div>"; break; } query) or die(mysql_error()); echo
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.