The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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... |
#2
|
||||
|
||||
Does this work?
$_SESSION['jobCat'] = $_REQUEST['jobCat']; $_SESSION['jobTitle'] = $_REQUEST['jobTitle']; retrieve them like this: $jobCat = $_SESSION['jobCat']; $jobTitle = $_SESSION['jobTitle']; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|