Can some1 help me out with the following codes. Well the situation is as follows:
I wrote an Html file to send data to the following page and on this page depending on the user's input he is directed to chosen page.
Then the session will indicate him which page he has chosen. Plz someone help me out.
<?
session_start();
$SESSION['first'] = "User has selected the first page!";
$SESSION['second'] = "User has selected the second page!";
$SESSION['third'] = "User has selected the third page!";
$SESSION['default'] = "User has selected the default page!";
session_write_close();
if($_POST['txtnum']==1)
{
header('Location: first.php');
}
elseif($POST['txtnum']==2)
{
header('Location: second.php');
}
elseif($POST['txtnum']==3)
{
header('Location: third.php');
}
else
{
header('Location: default.php');
}
?>