Adding to cart function.

From: Date: Fri, 25 Oct 2002 09:07:07 +0000
Subject: Adding to cart function.
Groups: php.general 
Request: Send a blank email to php-general+get-121399@lists.php.net to get a copy of this message
My boss wants me to add a number of items to the cart based on a user form input. At the moment my add to cart function checks if anything is in it and then increments one item (using this code). I can supply the full function if required but just this part would get me away I think. if($cart[$new]) $cart[$new]++; Instead of incrementing by one how do I increment by a variable which would be the form input? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com stephen.jackson@violasystems.com Mobile +358 50 343 5159

« previous php.general (#121399) next »