Does any body know a script to redirect a link to another web page?
1 reply to this topic
Posted 06 March 2006 - 04:43 PM
To redirect a user use the header function
<?php header("Location: http://www.google.com"); ?>Or a refresh the page a fter say five secounds and it'll redirect to where ever:
<?php header("Redirect: 5; URL=http://www.google.com"); echo "You will be redirected in 5 secounds to Google.com!"; ?>NOTE: Make sure you dont output anything before the user of header otherwise you script will not work!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users