Image and variable
| From: | Henri Marc | Date: | Tue, 10 Aug 2004 11:47:36 +0000 |
| Subject: | Image and variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-193257@lists.php.net to get a copy of this message | ||
Hello,
I would like to use a variable instead of an image
file name in a html page with this instruction:
<?php
echo '<img src="$myimage">';
?>
I tried but the image doesn't show up. Is it
impossible or do I do something wrong?
My goal is to have a random image print in the page,
that's why I want to use a variable.
Thank you for your good advices.
Vous manquez despace pour stocker vos mails ?
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer
instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com