limitphp Posted February 10, 2009 Share Posted February 10, 2009 Like: if $loginExist ==0 { //show alert saying you must be logged in to do that }else{ include("page.php"); } Quote Link to comment https://forums.phpfreaks.com/topic/144628-solved-can-you-put-an-include-in-an-if-else-statement/ Share on other sites More sharing options...
Maq Posted February 10, 2009 Share Posted February 10, 2009 Yes you can, have you tried it? Apparently not. Quote Link to comment https://forums.phpfreaks.com/topic/144628-solved-can-you-put-an-include-in-an-if-else-statement/#findComment-758920 Share on other sites More sharing options...
premiso Posted February 10, 2009 Share Posted February 10, 2009 Notice the post at the top of this forum: "Can you do *insert thing*?" Quote Link to comment https://forums.phpfreaks.com/topic/144628-solved-can-you-put-an-include-in-an-if-else-statement/#findComment-758921 Share on other sites More sharing options...
limitphp Posted February 10, 2009 Author Share Posted February 10, 2009 sorry.... Quote Link to comment https://forums.phpfreaks.com/topic/144628-solved-can-you-put-an-include-in-an-if-else-statement/#findComment-758922 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.