stockton Posted September 21, 2009 Share Posted September 21, 2009 I have a page www.stockton.co.za/prince22.html and what I want to do is when a user clicks on one of those images retrieve which image was clicked so that I can display the large version of that image. I want one php script that displays the large image so as an example I have coded <li><a href="Large.php"><img alt="Click to select." src="images/dogs/Prince-20080315_thumb.JPG" /></a>15th March 2008.</li> in prince22.html and I want Large.php called which in turn would identify which images was clicked & therefore display the large version of that image. Suggestions on how I achieve this would be appreciated. Link to comment https://forums.phpfreaks.com/topic/174984-solved-how-to-identify-which-image-was-clicked/ Share on other sites More sharing options...
trq Posted September 21, 2009 Share Posted September 21, 2009 Pass a reference of some type through the url. eg; <a href="Large.php?id=46463"> Link to comment https://forums.phpfreaks.com/topic/174984-solved-how-to-identify-which-image-was-clicked/#findComment-922214 Share on other sites More sharing options...
stockton Posted September 22, 2009 Author Share Posted September 22, 2009 Thank you. Link to comment https://forums.phpfreaks.com/topic/174984-solved-how-to-identify-which-image-was-clicked/#findComment-922796 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.