I have a webpage that I am working on that is kinda like a wizard. I have 'next' and 'back' buttons at the bottem of the page. I want to start a session that remembers what the values are on each of the pages so the user can go back and forth and change any of the values. The problem that I am having is that if you set the value and go back to change it, it doesn't change. It just retains the value that it was assigned on the first submit. This is an example of how it is currently set up.
<?
session_start();
$SESSION[CaseType] = $GET[CaseType];
?>
<form name="form1" action="<?echo $PHP_SELF; ?>" method="get">
<select name="CaseType">
<option value="case1" <? if ($SESSION[CaseType]=="case1"){echo"selected";}?>>case1</option>
<option value="case2" <? if ($SESSION[CaseType]=="case2"){echo"selected";}?>>case2</option>
</select>
<input type="submit" name="back" value="Back"><input type="submit" name="forward" value="forward">
</form>