dannybrazil Posted March 31, 2008 Share Posted March 31, 2008 any one know why after im adding this meta tag : <metahttp-equiv="refresh"content="5"/> the page refresh it self every 5 sec NON stop? instead of only once just to refresh the contect 10x Link to comment https://forums.phpfreaks.com/topic/98737-page-refresh/ Share on other sites More sharing options...
sstangle73 Posted March 31, 2008 Share Posted March 31, 2008 thats HTML but thats what the tag does if i think about it it would be because every time it refreshes the page the meta tag is there again so it keeps doing it i guess you question is is there a way to refresh it once? if thats the case idk Link to comment https://forums.phpfreaks.com/topic/98737-page-refresh/#findComment-505263 Share on other sites More sharing options...
dannybrazil Posted March 31, 2008 Author Share Posted March 31, 2008 hehehe thats true it will refresh and execute again how can i prevent it and make it refresh only ONCE ? Link to comment https://forums.phpfreaks.com/topic/98737-page-refresh/#findComment-505268 Share on other sites More sharing options...
maxudaskin Posted March 31, 2008 Share Posted March 31, 2008 <?php if(!isset($_GET['refresh'])){ echo "<meta http-equiv=\"Refresh\" content=\"0;url=\"page.php?refresh=1\">"; } ?> Link to comment https://forums.phpfreaks.com/topic/98737-page-refresh/#findComment-505274 Share on other sites More sharing options...
sstangle73 Posted March 31, 2008 Share Posted March 31, 2008 ooo thats smart haha=] Link to comment https://forums.phpfreaks.com/topic/98737-page-refresh/#findComment-505276 Share on other sites More sharing options...
maxudaskin Posted March 31, 2008 Share Posted March 31, 2008 That is why I am gifted Link to comment https://forums.phpfreaks.com/topic/98737-page-refresh/#findComment-505283 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.