R: [PHP] Shopping with variables
| From: | Gabriele Biondo | Date: | Sun, 17 Jun 2001 09:22:58 +0000 |
| Subject: | R: [PHP] Shopping with variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53003@lists.php.net to get a copy of this message | ||
> ?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?
Try with replacing your print with the following one:
print(" You have asked to purchase DVD: $dvd VIDEO: $video CD: $cd 's - ...
it should work.
Bye
Gabriele