teramera Posted May 16, 2007 Share Posted May 16, 2007 I am a newbie at php but am trying to learn .. with some help from you experienced lot its a pleasure. Can you help me with what i want to do, am totally lost here. This is what i want to do: In a php script I have the following code where it shows the text in the browser: if ($SilentMode != 1) { print "<br> \n "; print "Confirmation email sent to $Email_Address! Please check your inbox. <br> \n "; } What i would like to do is, instead of outputting the text "Confirmation email sent... etc etc" as above, have it open a html page using the meta refresh tag like this: <meta http-equiv="refresh" content="0;url=http://www.mydomain.com/success.html"> Can someone please help me with the code, what it is , so that I can have it working the way as outlined above. Thanking you in advance Regards Tera Link to comment https://forums.phpfreaks.com/topic/51715-solved-how-to-call-a-meta-refresh-tag-in-php-script-code/ Share on other sites More sharing options...
chigley Posted May 16, 2007 Share Posted May 16, 2007 Instead of using a <meta> HTML redirect, why not use this: <?php if ($SilentMode != 1) { print " \n "; print "Confirmation email sent to $Email_Address! Please check your inbox. \n "; header("Location: success.html"); } ?> Link to comment https://forums.phpfreaks.com/topic/51715-solved-how-to-call-a-meta-refresh-tag-in-php-script-code/#findComment-254767 Share on other sites More sharing options...
teramera Posted May 16, 2007 Author Share Posted May 16, 2007 Hi! Chigley, Thanks a million.. works like a charm .. am so happy. Thank you very very much once again Regards tera Link to comment https://forums.phpfreaks.com/topic/51715-solved-how-to-call-a-meta-refresh-tag-in-php-script-code/#findComment-254794 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.