PHP - Header Redirect

/ Published in: PHP
Save to your folder(s)

Copy this code and paste it in your HTML
  1. // Redirect
  2. header( "refresh:5;url=index.php" );
  4. // Custom Redirect
  5. echo '<div id="message_redirect">' .
  6. 'You\'ll be redirected in about 5 secs. If not, please <a href="index.php">click here</a>.'.
  7. '</div>';

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.