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"); } 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. 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*?" 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.... 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
Archived
This topic is now archived and is closed to further replies.