Afternoon,
I can't seem to get my head around this even with pictures :queasy:
What I'm trying to do is from a form with three check boxes and the values ALA,PM and RA. The logic being if they chose ALA show these questions if PM show these questions if RA show these questions. Continue showing questions for each position until they run out of selections.
I was thinking the logic would be something like this for the first page. I know I have three chances to find out what option 1 is but after that I loose it to continue the logic. If someone could nudge me in the right direction that would be great.
Thanks in advance,
Laura
// start the session
session_start();
header("Cache-control: private"); //IE 6 Fix
// Get the user's input from the form
$Position_Requested = '';
foreach($_POST['Position_Requested'] as $value)
{
$Position_Requested .= $value.",";
}
$pieces = explode(",", $Position_Requested);
$_SESSION['PosOne'] = $pieces[0];
$_SESSION['PosTwo'] = $pieces[1];
$_SESSION['PosThree'] = $pieces[2];
if ($_SESSION['PosOne'] == 'ALA' ) {
header("Location: ALAQuest.php");
exit;
} elseif ($_SESSION['PosOne'] == 'RA' ){
header("Location: RAQuest.php");
exit;
} else {
header("Location: PMQuest.php");
exit;
}