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
[EMAIL PROTECTED]
http://www.insur-e.net


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to