Im really chuffed that I managed to start a session and display the output on another page.
What I would like to know is how could I pass this session variable to a hidden field for a form. here is the basic code.
<?php
//page1.php//
session_start();
$_SESSION["test"] = "This is a test";
?>
<a href="page2.php">Go to page 2</a>
<?php
//page2.php//
session_start();
print $_SESSION["test"];
session_destroy();
?>
at this point here I would like to take the session variable 'test' and place this in a hidden form field like below
<input type="hidden" name="test" value="<? echo"$test"; ?>
How would I do this. I see another new horizon opening with these sessions. It means I could open a session variable say 10 pages along.
I would really appreciate your help.