I am trying to make an image popup window using php and java. I have thumbnail that I want to link to a larger picture and when you click on the thumbnail the bigger picture pops up in a window and below the picture there is a link that says "close window"
Here is what i have so far.
I have a page lets just call it pic.php
here is the code i have for the link for the thumbnail.
<a href="javascript:window.open('window.php?id=1')"><img src="images2/cat2/thumbs/cat_small1.jpg" width="120" height="90"></a>
then I made a file called window.php and here is the code in it
<br>
<center>
<?php
echo "<img src='$id'>";
?>
</center>
<br>
<br>
<br>
<br>
<center><a href="javascript:window.close">Close Windows</a></center>
</body>
I get the popup but there is no picture, only a X, I have a pic called 1.jpg in my root directory. if you right click on the red x whre the pic should be and go to properties the filename it is trying to load is just ".jpg" with no prefix.
Any suggestions, this is driving me crazy.
THanks in advance.