webref.eu Posted May 31, 2009 Share Posted May 31, 2009 Hi All I want to write in code: If ($_POST['processform'] == 1) OR if(isset($_COOKIE['cookname'])) so how do I write the statement correctly? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/160366-solved-how-do-i-write-this-if-statement/ Share on other sites More sharing options...
anupamsaha Posted May 31, 2009 Share Posted May 31, 2009 If ($_POST['processform'] == 1 OR isset($_COOKIE['cookname'])) Quote Link to comment https://forums.phpfreaks.com/topic/160366-solved-how-do-i-write-this-if-statement/#findComment-846247 Share on other sites More sharing options...
dreamwest Posted May 31, 2009 Share Posted May 31, 2009 if ($_POST['processform'] == 1 || isset($_COOKIE['cookname'])) Quote Link to comment https://forums.phpfreaks.com/topic/160366-solved-how-do-i-write-this-if-statement/#findComment-846250 Share on other sites More sharing options...
Andy-H Posted May 31, 2009 Share Posted May 31, 2009 if ( ($_POST['processform'] == 1) || isSet($_COOKIE['cookname']) ) { /* Code */ } else { /* Code */ } Quote Link to comment https://forums.phpfreaks.com/topic/160366-solved-how-do-i-write-this-if-statement/#findComment-846251 Share on other sites More sharing options...
webref.eu Posted May 31, 2009 Author Share Posted May 31, 2009 Thank you everyone! Rgds Quote Link to comment https://forums.phpfreaks.com/topic/160366-solved-how-do-i-write-this-if-statement/#findComment-846257 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.