Hello all!
I have little problem with sessions.. I have to make a region selection screen and it needs that it keeps the info of the users selection. This is my region.php:
<form action="index.php?page=home" method="post">
<p align="center"><select size="1" name="region">
<option>Region1</option>
<option>Region2</option>
<option>Region3</option>
</select><input type="submit" value="Submit"><input type="reset" value="Reset"></p>
in index.php i have lines:
<?
session_start();
$SESSION['region'] = $POST['region'];
?>
Now it should be in session with variablename of $region , am I right ? Now when I go to hyperlink somewhere inside the pages for example index.php?page=news it doesn't recognize the variable anymore.. So.. Am I doing this all wrong or where's the problem ?
Thank you.