phpmady Posted June 5, 2010 Share Posted June 5, 2010 Hi, is there any alternative to echo "<meta http-equiv=Refresh content=5;url='index.php'>"; waiting for 5 seconds to redirect the url Thanks, Link to comment https://forums.phpfreaks.com/topic/203942-alternative-to-meta-refresh-tag-having-seconds-to-wait-before-redirect/ Share on other sites More sharing options...
ignace Posted June 5, 2010 Share Posted June 5, 2010 header('Refresh: 5; url=index.php'); Link to comment https://forums.phpfreaks.com/topic/203942-alternative-to-meta-refresh-tag-having-seconds-to-wait-before-redirect/#findComment-1068131 Share on other sites More sharing options...
Tazerenix Posted June 5, 2010 Share Posted June 5, 2010 you could use something like sleep and then call header('Location: index.php'); you could also do it with javascript. Link to comment https://forums.phpfreaks.com/topic/203942-alternative-to-meta-refresh-tag-having-seconds-to-wait-before-redirect/#findComment-1068138 Share on other sites More sharing options...
phpmady Posted June 5, 2010 Author Share Posted June 5, 2010 header('Refresh: 5; url=index.php'); when i use this, its not redirecting Link to comment https://forums.phpfreaks.com/topic/203942-alternative-to-meta-refresh-tag-having-seconds-to-wait-before-redirect/#findComment-1068142 Share on other sites More sharing options...
Tazerenix Posted June 5, 2010 Share Posted June 5, 2010 header('Refresh: 5; url=index.php'); when i use this, its not redirecting hmm, that should work. What you could do is add a "You will be redirected, if not then click here" if its not always working. Link to comment https://forums.phpfreaks.com/topic/203942-alternative-to-meta-refresh-tag-having-seconds-to-wait-before-redirect/#findComment-1068145 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.