I got the below code from this post:
But I cannot get it to work, even straight copying & pasting. I get a warning that the headers were already opened on either line 6 or line 8 depending on which of the choices I attempt.
There are a few other things I need to do with my form (validation & sending an email of results) in addition to redirecting based on the input of one of the fields, but I can't get past just the redirect part in order to attempt the other coding.
If someone knows how I can accomplish the other goals in addition to being able to use the code below, I would greatly appreciate it!
<form name="myForm" action="thispage.php" method="post">
<br /><br />
<h3>Please enter the Email Code that you received to retrieve your message</h3>
<input type="text" name="ec" maxlength="4" size="6" /></blockquote>
<input type="submit" />