PHP for photo display
Posted: Wed Oct 18, 2006 8:26 pm
I hae a web site with many photos about past club events. The current implementation of the site involves a cover page full of thumbnails for each event. Clicking on the thumbnail opens another web page with the file name of the full ssize photo and the photo caption hard wired into the html page. Thus there is a photo and an html file for each photo.
I would like to use php to reduce the number of pages on the site. Specifically, I would like to have a function on the cover page that would display the full sized image and the related caption in a new window when the thumbnail was clicked, but that would not require an html page for each photo. Thus the function would take two arguments, the path to the full-sizedophoto, and a literal string containing the caption. The function would open the file in a new window and wait for the user to close the window.
I am new to php and don't know how to code such a function and how to call it from hyperlinks in the cover page.
Thanks
I would like to use php to reduce the number of pages on the site. Specifically, I would like to have a function on the cover page that would display the full sized image and the related caption in a new window when the thumbnail was clicked, but that would not require an html page for each photo. Thus the function would take two arguments, the path to the full-sizedophoto, and a literal string containing the caption. The function would open the file in a new window and wait for the user to close the window.
I am new to php and don't know how to code such a function and how to call it from hyperlinks in the cover page.
Thanks