Jump to content

[SOLVED] How to call a meta refresh tag in php script code ?


teramera

Recommended Posts

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

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");
        }

?>

 

:)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.