Jump to content

[SOLVED] isset problem


leest

Recommended Posts

i have a job board site where the user can choose jobs by location and category, which are selected by drop down menus.  the selected information is then sent via a GET form.  on the results page i get the results fine and display the correct job vacancies. 

 

On the same page as the results page i have a login form, now  this is where my problems start, as soon as a user logs in all the results are returned.  Now i have tried to register the Get vars as sessions and then using the isset command but it doesn't seem to work.  below is a copy of the code and any guidance would be appreciated.

 


session_start(); 
if(isset($_GET['category'],$_GET['location'] ))
{

$category = $_GET["category"] ;
$location = $_GET["location"] ;


$_SESSION['category']= $_GET['category'];
$_SESSION['location']= $_GET['location'];

}

$category = $_SESSION['category']; 
$location = $_SESSION['location'];

Link to comment
https://forums.phpfreaks.com/topic/109917-solved-isset-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.