Hyperlink using thumnail
| From: | Dave Stewart | Date: | Wed, 24 Jan 2001 02:23:41 +0000 |
| Subject: | Hyperlink using thumnail | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36311@lists.php.net to get a copy of this message | ||
Hi again,
How do I link this image file so that when users click on it they get
the bigger version (which is named xxxxxxxx01.jpg).
<?
$photo = file_exists("th_xxxxxxxx01.jpg") ? "<IMG
SRC=\"th_xxxxxxxx01.jpg\">" : "No Photo Yet<br>\n";
echo "$photo";
?>
Here is the html version of what I am trying to do, as you can see the
'xxxxxxxx' is a variable.
<p align="left"><a href="race02.jpg"><img
src="th_race02.jpg"
alt="CLICK TO ENLARGE"></a></p>
Thanks again,
Dave