My question is pretty simple. I tried doing some research into this but I never got it working with images.
I want to have a clickable image so when a user clicks on that image, it carries over some type of variable (ID) to another php page, so I can know which image that user clicked on and give the result.
My current code is this:
echo '<a href="viewer.php"><img src=' . $covers->src . 'height="300" width="190" value=' . $test . ' name="view" /></a>';
I tried doing this on my second php page:
$var_value = $_GET['view];
echo $var_value;
but I get undefined error on line 1.