Hi, I am fairly new to all this and i am just playing around at the minute.
I have the first image out of 2 directories on screen and I would like to be able to have these images act effectively as buttons, so that when you click on one, it brings up another page that displays the other images in that directory.
Here is the first page
Basically, the problem is that the $file variable changes each time while (($file = readdir($opendir)) !== FALSE) loops around, which is what i need for this page. However when this is sent in the hidden field of the form, it only sends the last value of $file (in this case it is "album 2").
Is there a way that I can get the correct value of $file (eg album 1or album 2) to be POSTed to the next page, because as you can see on the page, both images end up showing.../album2 on the second page. How could i change this, maybe by some how creating a new variable each time? I don't know.
Currently i have set the second page to only show the directory, not the image, to illustrate the problem.
The page is at
http://www.windsurfblog.org/windsurf...lbumviewer.php
Sorry for the long message but any help would be appreciated
Regards
Callum