eddy556 Posted May 29, 2008 Share Posted May 29, 2008 I need to redirect my HTML to another page. How do I do this? I have been trying: <META HTTP-EQUIV="Refresh" CONTENT="5" URL="http://www.google.com/user.php" /> but no matter what I put as the URL attribute it simply refreshes the current page. Quote Link to comment https://forums.phpfreaks.com/topic/107805-redirection-to-a-new-page/ Share on other sites More sharing options...
beansandsausages Posted May 29, 2008 Share Posted May 29, 2008 HAHA didnt know ppl still used html to redirect, anyway try this you missed ; off after the time, <meta http-equiv="refresh" content="15;url=http://www.phpfreaks.com"> Quote Link to comment https://forums.phpfreaks.com/topic/107805-redirection-to-a-new-page/#findComment-552654 Share on other sites More sharing options...
haku Posted May 29, 2008 Share Posted May 29, 2008 <meta http-equiv="refresh" content="5;url=http://www.google.com/user.php" /> Quote Link to comment https://forums.phpfreaks.com/topic/107805-redirection-to-a-new-page/#findComment-552657 Share on other sites More sharing options...
eddy556 Posted May 29, 2008 Author Share Posted May 29, 2008 lol take it javascript is usually the way to do this? Quote Link to comment https://forums.phpfreaks.com/topic/107805-redirection-to-a-new-page/#findComment-552725 Share on other sites More sharing options...
eddy556 Posted May 29, 2008 Author Share Posted May 29, 2008 I've used the window.location javascript it seems to work more effectively. Many thanks Quote Link to comment https://forums.phpfreaks.com/topic/107805-redirection-to-a-new-page/#findComment-552727 Share on other sites More sharing options...
haku Posted May 29, 2008 Share Posted May 29, 2008 Actually, your original method was probably more reliable. If someone turns of javascript, it wont work. I personally use a php header. header('Refresh: 3; url=index.html'); Quote Link to comment https://forums.phpfreaks.com/topic/107805-redirection-to-a-new-page/#findComment-552729 Share on other sites More sharing options...
beansandsausages Posted May 29, 2008 Share Posted May 29, 2008 Actually, your original method was probably more reliable. If someone turns of javascript, it wont work. I personally use a php header. header('Refresh: 3; url=index.html'); me too, Quote Link to comment https://forums.phpfreaks.com/topic/107805-redirection-to-a-new-page/#findComment-552772 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.