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 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 ""; 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 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? Link to comment https://forums.phpfreaks.com/topic/159530-or-stmt-help/#findComment-841509 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.