Hello,
I am using the following code. The form has an optio to select the level. If he selects 1 he is to be diverted to page1.php, else to page2.php. But when I had uploaded the file in my local XAMPP server as well in the web server, it does not work. I had been trying it for many days but in vain. Can any one please tell me what is wrong.
if ($actionflag=="manager" && isset($actionflag) )
{
$message="";
if (empty ($form[level] ) )
$message .= "Please identify yourself <br>\n";
if ( $message == "") // we found no errors
{
cleanMemberSession ($id, "", "", $form[statename], "", $form[level] );
if($form[level] == "DC")
{
header ( "Location: page1.php?".SID);
}
else
{
header ( "Location: page2.php?".SID);
}
exit;
}
}
?>