dadamssg Posted May 25, 2009 Share Posted May 25, 2009 how do i check if three variables are set? for instance if(isset($message) or isset($message_s) or isset($_SESSION['message'])) { echo "<div id='box'> } the above doesn't work...basically those are are all error messages and i want to put a box around them if they are set Quote Link to comment https://forums.phpfreaks.com/topic/159530-or-stmt-help/ Share on other sites More sharing options...
Maq Posted May 25, 2009 Share Posted May 25, 2009 Change this to: echo ""; Quote Link to comment https://forums.phpfreaks.com/topic/159530-or-stmt-help/#findComment-841505 Share on other sites More sharing options...
dadamssg Posted May 25, 2009 Author Share Posted May 25, 2009 oh yeah...it still doesn't work though Quote Link to comment https://forums.phpfreaks.com/topic/159530-or-stmt-help/#findComment-841508 Share on other sites More sharing options...
Maq Posted May 25, 2009 Share Posted May 25, 2009 Works for me. Are there certain ones/combinations that don't work? Quote Link to comment https://forums.phpfreaks.com/topic/159530-or-stmt-help/#findComment-841509 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.