Hi,
Can someone tell my why this Session var isn't being saved?
// set here
$HTTP_SESSION_VARS['sv_adCatText'] = $row_GetCatText['category'];
if($_POST['selCat'] == "9"){
header("Location: " . "CreateAdBook.php");
exit;
}else{
header("Location: " . "CreateAdNonBook.php");
exit;
}
//CreateAdNonBook.php
<td><?php echo $HTTP_SESSION_VARS['sv_adCatText']; ?></td>
I get this error:
Notice: Undefined index: sv_adCatText
If I do this in the first page:
$HTTP_SESSION_VARS['sv_adCatText'] = $row_GetCatText['category'];
echo $HTTP_SESSION_VARS['sv_adCatText'];
exit;
sv_adCatText echo's correctly.
If I do:
<?php
var_dump($HTTP_SESSION_VARS);
?>
on the second page, I see all the Session vars but not the one I want.
Thanks,
James