Hello there,
I figured out how to pass single variables through sessions by using the session_start() call, I have been trying to pass variables that are arrays without any sucess.
here is the code that i ihave
<? session_start();
$PassingArray[0] = 1;
$PassingArray[1] = 2;
$PassingArray[2] = 3;
$_SESSION['array'] = $passingarray;
?>
And when i go to page two , I am using the following Code and nothing outputs
<?
session_start();
foreach ($_SESSION['array'] as $key => $value) {
echo "test";
}
echo "<br>";
?>
Can someone help point me in the right direction? thanks. I appreciate it.