I'm a PHP beginner. What I'm trying to do is have a page with thumbnails along the bottom. Every time you hit a thumb the large image above the thumbs changes and the caption under the picture changes as well. I've got it where the picture changes just fine but I can't figure out how to change the caption. The code for the picture is: <? $title = 'paris_color'; if ($_GET['b']){ print '<img class="images" src="galleries/paris_color/full/' . $title . $_GET['b'] . '.jpg" height="425">'; } else { print '<img class="images" src="galleries/paris_color/full/' . $title . '1.jpg" height="425">'; } ?> The corresponding code on one of the thumbs is: <a href="<?= $title ?>_gallery.php?b=2 $caption = 'this is the first image'"><img class="thumb" src="galleries/paris_color/thumbs/paris_color2.jpg" width="50" height="50" /></a> So far I've got this for the caption code: <? $caption = 'this is the first image'; print "$caption"; ?> My questions are: 1. How do I append the a tag to make it change the caption also? 2. Does the caption code I'm using have to be augmented as well? I know this must be a really basic problem but I haven't been able to find anything in my books or online that specifically addresses it. Thanks to anyone who's able to help me. Louis Libert