Loading ...
Sorry, an error occurred while loading the content.

Re: [phpXperts] ***Conditional header redirection

Expand Messages
  • shiplu
    Hello Debug it correctly. Here is a good solution. *
    Message 1 of 7 , Apr 2, 2008
    • 0 Attachment
      Hello Debug it correctly.
      Here is a good solution.
      <?php
       
      include_once "header.inc"
       
      if( CONDITION == TRUE )
      {
                echo "RESULT";
      }
      else
      {
      if( CONDITION == TRUE )
      {
                          ?>
      <script type="text/javascript">
      <!--
      window.setTimeout(function(){window.location.href="somepath.php";},5000);
      //-->
      </script>
      <?php
                          echo "If your browser does not redirect in 5 seconds <a href='continue.php'>click here</a> to continue.";
      }
      else
      {
                          DO ANOTHER ACTION
      }
      }
       
      ?>


      --
      Shiplu
      http://talk.cmyweb.net/

    Your message has been successfully submitted and would be delivered to recipients shortly.