I am coding a page that pages an image variable to another page which will display the image, but for some reason the damn variable isn't being passed. I have looked over it for awhile and I know that there is something stupid that im over looking. I am going to post the two different pages below. Any help would be great appreciated.
//photos/index.php
<?
$dirHandle = opendir($bandPhotoDir) or die("Couldn't open ".$dir);
while (FALSE !== ($file = readdir($dirHandle))) {
if ($file !== '.' && $file !== '..') {
$imgFiles[] = $file;
}
}
?>
<?foreach ($imgFiles as $image):?>
<?
$imgSize = getimagesize($bandPhotoDir."/".$image);
$imgWidth = $imgSize[0];
$imgHeight = $imgSize[1];
?>
<a href="view_image.php?image=<?=$image?>"><img src="<?=$bandPhotoDir?>/<?=$image?>"
border="0" width="<?=$imgWidth?>" height="<?=$imgHeight?>" alt="<?=$altText?>"></a>
<?endforeach?></td>
</tr>
</table>
//end photos/index.php
//begin view _image.php
<?require_once("../common/common.inc")?>
<html>
<head>
<title><?=$pageTitle?> :: Image Viewer ::</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/common/common.css">
</head>
<body bgcolor="#000000">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<?=$image?><br>
<img src="images/<?=$image?>" alt="<?=$altText?>"></td>
</tr>
</table>
</div>
</body>
</html>
//end view_image.php
Thank you,
Cory