I am using Flash on my website so the form is on a flash page... this is not my problem, that works just fine. I call getURL("Team4Reg.php","","POST"); in my Flash page and it calls the right .php file. Which then processes my form just fine, sending the appropriately formatted emails to the right place, but then at the end of the php file I ask it to echo some text, wait 10 seconds and redirect
All that is happening is the email processing and the echo. The redirect doesn't work. But if I take out the echo, then the redirect works. I think it's a timing issue. Because when I run the echo it takes a few seconds for the echo to appear... but if I //comment out the echo it runs the redirect almost instantly. Is this timing out and missing my redirect?!? How do I fix it. Thanks in advance.
Snayjay
Code:
mail($sendTo, $subject, $msg_body, $header_info);
echo("Your Registration Request has been sent, please wait for an email confirming your spot in our tournament.<BR>
You will be returned to our website in 10 seconds.<BR>
Thank you for registering.");
sleep(10);
header("Location: /BCS/Index.html");
?>
All that is happening is the email processing and the echo. The redirect doesn't work. But if I take out the echo, then the redirect works. I think it's a timing issue. Because when I run the echo it takes a few seconds for the echo to appear... but if I //comment out the echo it runs the redirect almost instantly. Is this timing out and missing my redirect?!? How do I fix it. Thanks in advance.
Snayjay