Bee Posted March 6, 2006 Share Posted March 6, 2006 Hi,Does any body know a script to redirect a link to another web page?Thank youBee Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 6, 2006 Share Posted March 6, 2006 To redirect a user use the header function[code]<?phpheader("Location: http://www.google.com");?>[/code]Or a refresh the page a fter say five secounds and it'll redirect to where ever:[code]<?phpheader("Redirect: 5; URL=http://www.google.com");echo "You will be redirected in 5 secounds to Google.com!";?>[/code]NOTE: Make sure you dont output anything before the user of header otherwise you script will not work! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.