I'm working on a system that has a 'search filter' on the home screen. For that, in my header I put a select / combo box and an 'OK' button.
To handle this I decided to use sessions, where I can save the value that the guy chose and use on all the necessary pages. But this session is having a problem.
- Every time he goes to some other page, the session seems to be zero and I do not have the information anymore:
session_start();
$geral = $_GET['slcGeral'];
$_SESSION['Geral'] = $geral;
- To test I passed the direct value and so it works normal:
session_start();
$geral = 1;
$_SESSION['Geral'] = $geral;
What can it be?