Forum Moderators: coopster
Thumbnails page:
<a href="pic.php?nameofpic"><img src="thumbnail.jpg"></a>
and then on the pic.php page:
<img src="name of image from url">
get it? thanks a lot in advance. :)
That can be done with an extra get parameter as follows:
<a href="pic.php?img=picture.jpg&caption=Caption%20For%20Your%20Image"><img src="thumbnail.jpg"></a>
Use %20 for spaces in the caption as shown above.
Then on your page, load the full size image and caption via $_GET.
$img = $_GET['img'];
$caption = $_GET['caption'];
$info = getimagesize($img);
echo "<img src=\"$img\" ".$info[3]." alt=\"$caption\"><br>$caption";
This will also fill in the correct image dimension and popups the caption text when your visitor hovers over the image.
Regards,
Arjan