This is the code.....
I know that header needs to be before content but still i either get the warning error message for header or nothing happens...
<?php
require ('main.php');
$page = new homePage();
$page->content = '<p class = "content"> Please Choose one of the following options </p><br><br><br><br>';
$page->Display();
?>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="POST" >
<div style="width:25em; font-size:22; position:relative;top:-5%; left:35%">
<fieldset><legend> Please Choose:</legend><br>
<input type='radio' name='radio1' value='stud'>Students</input><br><br>
<input type='radio' name='radio1' value='super'>Supervisors</input><br><br>
<input type='radio' name='radio1' value='admin'>Administrator</input><br><br><br>
<input class = "button" type='submit' name='submit' value='Choose' />
</fieldset>
</div>
</form>
<?php
$page->Display2();
if(isset($POST['submit']))
{
if ($GET['radio1'] == 'stud')
{
header("Location: page2.php");
}
}
?>