Jump to content

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

?>

 

:)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.