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
Share on other sites

thanks for the reply,

 

well once someone has logged in it runs a login process page and then comes straight back to this same page, i do have session start on the process page but maybe that is where my problem lies???

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.