If you want to pass data to another page, you could append to the URL in a GET fashion.
For example:
<a href="www.mydomain.com/show.php?img=myimage.jpg">Get Details</a>
Here, we are passing a value myimage.jpg
to the show.php
page.
So, in show.php
page, you could access this data using the $_GET
.
For example:
<?php
$img_name = $_GET['img']; //will get the value "myimage.jpg"
//... use this data to do whatever you need
?>