In my 1st page I pass a value called 'id' to my 2nd page using a hyperlink.
explained:
<a href="abc.php?i d=<?php print"$image_id ";?>"></a>
so in my 2nd page (abc.php) I capture the value for id using $_GET.
I want to know how I can do the same using session variables.
coz when I navigate away from abc.php and back it seems that the value in 'id' have disapeared.
I tried using this but doesnt seem to work. :(
Expand|Select|Wrap|Line Numbers
- <?php session_start();
- session_start();
- session_register ("pid");
- $pid = $_GET['id'];
- $HTTP_SESSION_VARS ["pid"] = $pid;
- ?>
Thanks in advance and pls help soon. I'm totally stuck without this.
By the way I hp I didnt giv a heartattack to the moderators again!