What is wrong with this

Discussion in 'PHP' started by tvnation, May 10, 2008.

  1. #1
    <?php 
    if($send_contact){echo "<meta http-equiv="Refresh" content="5 url=index.php"> </meta>"} ;  
    else {echo ""}; ?>
    PHP:
    this is in my header. i want it so that if the email was sucessful it will redirect to the index in 5 seconds , while it says its sucessful below
     
    tvnation, May 10, 2008 IP
  2. Nalltaroh

    Nalltaroh Peon

    Messages:
    54
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    
    <?php
    if($send_contact){echo "<meta http-equiv=\"Refresh\" content=\"5 url=index.php\"> </meta>"} ; 
    else {echo ""}; ?>
    
    PHP:
    Try that.
     
    Nalltaroh, May 10, 2008 IP
  3. tvnation

    tvnation Peon

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    nope no sucess
     
    tvnation, May 10, 2008 IP
  4. Nalltaroh

    Nalltaroh Peon

    Messages:
    54
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <?php
    if($send_contact)
    {
    echo "<meta http-equiv=\"Refresh\" content=\"5 url=index.php\"> </meta>";
    }
    else 
    {
    echo "";
    }; ?>
    PHP:
     
    Nalltaroh, May 10, 2008 IP
  5. tvnation

    tvnation Peon

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    cheers dude
     
    tvnation, May 10, 2008 IP
  6. Nalltaroh

    Nalltaroh Peon

    Messages:
    54
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    No problem :D Glad I helped you.
     
    Nalltaroh, May 10, 2008 IP