Yeodan Posted March 25, 2009 Share Posted March 25, 2009 <?php if ($x == 1) echo "<meta HTTP-EQUIV='REFRESH' content='0;url=fight.php'>"; ?> is there a way to prevent the rest of the page from loading if the redirect triggers? Link to comment https://forums.phpfreaks.com/topic/151076-solved-prevent-a-part-of-the-page-from-loading/ Share on other sites More sharing options...
Brian W Posted March 25, 2009 Share Posted March 25, 2009 <?php if ($x == 1){ echo "<meta HTTP-EQUIV='REFRESH' content='0;url=fight.php'>"; die(); } ?> die() kills the app at that exact spot (with a little clean up) Link to comment https://forums.phpfreaks.com/topic/151076-solved-prevent-a-part-of-the-page-from-loading/#findComment-793652 Share on other sites More sharing options...
Yeodan Posted March 25, 2009 Author Share Posted March 25, 2009 <?php if ($x == 1){ echo "<meta HTTP-EQUIV='REFRESH' content='0;url=fight.php'>"; die(); } ?> die() kills the app at that exact spot (with a little clean up) thank you! <3 Link to comment https://forums.phpfreaks.com/topic/151076-solved-prevent-a-part-of-the-page-from-loading/#findComment-793653 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.