php_beginner_83 Posted May 24, 2009 Share Posted May 24, 2009 Hi All At the minute I am trying to create a database driven photo gallery. I have one page that will display the photo albums. I display the album title, the albums cover picture and a brief description of the album. From here I want to create a link using the album title. When the user clicks this link, a gallery will open where users can view the pictures from the selected album. The problem I have is when a user clicks the link. I'm not entirely sure how to do this. My idea was to have the link open a php file and in this php file determine which link had been clicked. Depending on which link, there would be a number of functions. A different function for every photo album. Having figured out which link was clicked, the appropriate function would be called. In this function, I would query the database and only return the pictures that belong to the album that was selected by the user. Is this a suitable way to do this? And if it is I dont know how I would determine which link was clicked by the user. I would appreciate any help and advice. Thank you. Link to comment https://forums.phpfreaks.com/topic/159470-solved-need-advice-on-links-and-passing-info-between-html-and-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.