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 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'])) 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'])) 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 */ } 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 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
Archived
This topic is now archived and is closed to further replies.