![]() |
saving session variable passed by form
i have a form with say two variables which i pass to page2.php, i retrieve their values like this:
$jobCat = $_REQUEST['jobCat']; $jobTitle = $_REQUEST['jobTitle']; and i want to store them as session variables so that when i pass more variables from page2.php to page3.php, i can retrieve $jobCat and $jobTitle at page3.php i've tried to store them like this: $_SESSION['jobCat'] = $jobCat; $_SESSION['jobTitle'] = $jobTitle; but when i tried to retrieve them like this: $jobCat = $_SESSION['jobCat']; $jobTitle = $_SESSION['jobTitle']; the fields were empty! help please... |
Does this work?
$_SESSION['jobCat'] = $_REQUEST['jobCat']; $_SESSION['jobTitle'] = $_REQUEST['jobTitle']; retrieve them like this: $jobCat = $_SESSION['jobCat']; $jobTitle = $_SESSION['jobTitle']; |
All times are GMT. The time now is 05:45 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|