Here's what I have (it's not formatted yet - I just want to get it working first):
template.php:
<TABLE WIDTH=98% CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=3 BGCOLOR=#004488 ALIGN="center"><IMG SRC="images/logo.gif"><BR><BR><FONT SIZE=1><A
HREF="pages/site.html">PLACEHOLDER</A></FONT></TD>
</TR>
<TR>
<TD ROWSPAN=5 WIDTH=200px BGCOLOR=#004488 ALIGN="center">
<FORM ACTION="redirect.php" METHOD="post">
<SELECT NAME="links">
<OPTION SELECTED> Please Select</OPTION>
<OPTION VALUE="1">Sci-Fi Gallery</OPTION>
<OPTION VALUE="2"> This is Option Number 2</OPTION>
<OPTION VALUE="3"> This is Option Number 3</OPTION>
<OPTION VALUE="4"> This is Option Number 4</OPTION>
<OPTION VALUE="5"> This is Option Number 5</OPTION>
<OPTION VALUE="6"> This is Option Number 6</OPTION>
</SELECT><BR>
<INPUT TYPE="submit" NAME="submit" VALUE="Go!">
</FORM>
</TD>
<TD WIDTH=40%> </TD>
<TD WIDTH=*> </TD>
</TR>
</TABLE>
</BODY>
</HTML>
redirect.php:
<HTML>
<HEAD><TITLE>ReFlash Studios</TITLE>
</HEAD>
<BODY BGCOLOR="black" TEXT="white" LINK="white">
<?php
if(isset($POST['links'])){
switch($POST['links']){
default:
header("Location:http://www.reflashstudios.com/template.php");
break;
case 1:
header("Location:http://www.reflashstudios.com/gall/gall11.html");
break;
case 2:
header("Location:some_link2.com");
break;
case 3:
header("Location:some_link3.com");
break;
case 4:
header("Location:some_link4.com");
break;
case 5:
header("Location:some_link5.com");
break;
case 6:
header("Location:some_link6.com");
break;
}
}
?>
</BODY>
</HTML>
Here's the output I get:
Warning: Cannot modify header information - headers already sent by (output started at /home/reflash/www/www/redirect.php:9) in /home/reflash/www/www/redirect.php on line 17
The address bar reads "... redirect.php"
Any ideas?