i'm currently building a photo gallery and it works fine.
now these codes is part of displaying the partial images
and when you click a photo the
$_SESSION['cur_photo'] = $photo_name; must assign properly and point
to the current clicked photo. a such it can be use on the second page.
<?php ... more codes here ... echo $photo_name; echo ('<td><center><a href="img_info.php"> <img src="'.$cur_img.'" /> $_SESSION['cur_photo'] = $photo_name; //this should be assigned to // point on a current photo, // but it's not. </a></center></td>'); ... more codes here ... ?>ok, i have done this before using these codes
<?php ... more codes here... echo ('<td><center><a href="img_info2.php?cur_img='.$cur_img.'"> <img src="'.$cur_img.'" /> </a></center></td>'); $i++; ... more codes here... ?>
but what i want is to use session, the only problem was it doesn't point
on the current clicked photo, so my question is how to incorporate a
session assignment in the <a href> so that it will point on the right
thank you very much in advance, your answer will be appreciated much.
and by the way what is this subject called "The assignment to <a href>"?
Is this a specific topic on HTML or on PHP?
please let me know cause i want to read more on this topic about assignment
on <a href>.