Shopping with variables

From: Date: Wed, 16 May 2001 09:12:43 +0000
Subject: Shopping with variables
Groups: php.general 
Request: Send a blank email to php-general+get-53002@lists.php.net to get a copy of this message
I am currently just messing around with a basic shopping cart, but have stumbled onto a problem. Bascially there is three input boxes all <name> DVD, VIDEO, CD and these are also variables. Once the user has said they wanted "15" cd's for example, the form then takes them onto the shop.php. Which say's something along the lines of: ?php print(" You have asked to purchase $dvd $video $cd 's - Thank you") >? This prints out, "You have bought 16 - Thank you" for example, see the problem? How do I get it to print the variable name not just it's value? Tarrant Costelloe Software Developer InsurE-com Ltd. ------------------------------------ Tel: +44 (0)1273 852014 tcostelloe@insur-e.net http://www.insur-e.net

« previous php.general (#53002) next »