html - PHP redirect doesn't work on IE? -
I try to insert a script to send an email and redirect to the main page. Yes, this is work!
Code example:
& lt ;? Php if (isset ($ _ POST) ['email'])) // Edit as required for 2 lines // $ email_to1 = "a@abc.com"; $ Email_to2 = "b@abc.com"; $ Email_subject = "Email from www.abc.com"; ................ ................ // $ headers = 'From:' to create e-mail header. $ Email_from "\ R \ n". Answer: ' $ Email_from "\ R \ n". 'X-Mailer: PHP /' phpversion (); // @mail ($ email_to1, $ email_sube, $ email_message, $ header); @ Email ($ email_to2, $ email_sube, $ email_message, $ header); Header ("Refresh: 3; http://www.abc.com/Contact.html"); ? & Gt; & Lt ;! - Include your own success here in HTML - & gt; Thanks for contacting us. We will contact you very soon. & Lt; Br> & Lt; A href = "http://www.abc.com/Contact.html" & gt; Back to Website & lt; / A & gt; & Lt ;? Php}? & Gt;
How can I solve it?
Please use the code below
header ('Location: Http: //www.abc.com/Contact.html ');
Comments
Post a Comment