Hello Tarrant,
Wednesday, May 16, 2001, 12:12:43 PM, you wrote:
TC> <?php print(" You have asked to purchase $dvd $video $cd 's - Thank you") >?
TC> This prints out, "You have bought 16 - Thank you" for example, see the
TC> problem? How do I get it to print the variable name not just it's value?
Use
<?php print(" You have asked to purchase ".
($dvd ? "DVD: $dvd ":'').
($video ? "Video: $video ":'').
($cd ? "CD's: $cd ":'').
" - Thank you") ?>
--
Best regards,
Vitali mailto:[EMAIL PROTECTED]
--
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]