I have the following error:
Warning: Cannot modify header information - headers already sent by (output started at /home/sn2010/public_html/pagetwo.php:10) in /home/sn2010/public_html/pagetwo.php on line 15
It happens when I go to pagetwo.php... You can try it here: http://sn2010.x10.mx/
I'm not sure exactly why it's giving me that problem, but here's my codes on both pages:
index.html
<form name="form1" action="pagetwo.php" method="POST">
<input type="submit" name="bootoon" value="index">
</form>
<form name="form2" action="pagetwo.php" method="POST">
<input type="submit" name="bootoon" value="http://www.facebook.com">
</form>
<form name="form3" action="pagetwo.php" method="POST">
<input type="submit" name="bootoon" value="http://www.yoyogames.com">
<form/>
pagetwo.php
<?php
echo "<h2>SN2010<br /></h2>";
echo "<hr align='left' width='680px' /><br /><br />";
$redirect = "Location: " . $_REQUEST["bootoon"] . ".php";
echo header($redirect);
?>
Anyone know why the webpages are creating this error? I've tried using ob_start(); and ob_end_flush();. So those two codes are out of the picture...