Ok, currently I have a "photo album" that, when a user clicks on a thumbnail, a new window containing only the enlarged image pops up.
What I am trying to do is make it so that when the user clicks on a thumbnail, the enlarged image appears in the same window.
Sounds simple enough, but I am attempting to preserve the background color, 'Back to previous page' icons, etc. This can be done in regular HTML one of two ways:
- By making a separate HTML file for each picture (100's of pics = 100's of HTML files) or
- By using an inline frame and linking each picture to said frame (however, this would constrict image size since they vary in width & height).
Now that the scenario is layed out...what I am trying to do is:
Make a single PHP file that can read a variable in the address bar (the variable will specify the file name of the picture to be displayed) and place the appropriate image on the page, allowing the background and 'Back to previous page' icons to show.
In other words, a single PHP file containing a template for a single picture to be shown in where the filename of the image is determined from a variable in the URL.
I hope this makes sense, and please forgive my lack of PHP knowledge. I'm still a beginner 🙂