monkeytooth Posted February 3, 2008 Share Posted February 3, 2008 I've seen a post here before for this but cant find it cause I cant remember the title of the post not to mention I dont think I know what im looking for per say.. Ok.. So lets say I have 2 pages.. page one is the template file, page 2 is just the raw page within the template. I don't want page 2 to be accessable, loadable, etc.. by itself.. I know I can set a var for page 2 to look for, which if the var turns up empty or unset, or anything that I don't want it to be.. but how do I just kill the page if its not set I tried halt; figuring that would work, it didnt page continued to load despite that.. so anyone know what im looking for in essence of trying to kill page 2's load if the var isnt set.. Quote Link to comment https://forums.phpfreaks.com/topic/89125-solved-halting-page-load/ Share on other sites More sharing options...
Stooney Posted February 3, 2008 Share Posted February 3, 2008 if(!isset($_POST['variable'])){ exit(); } Quote Link to comment https://forums.phpfreaks.com/topic/89125-solved-halting-page-load/#findComment-456444 Share on other sites More sharing options...
monkeytooth Posted February 3, 2008 Author Share Posted February 3, 2008 exit()... damn lol.. i knew it was something simple.. couldnt for the life of me remember, thank you. Quote Link to comment https://forums.phpfreaks.com/topic/89125-solved-halting-page-load/#findComment-456446 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.