grahamb314 Posted September 20, 2008 Share Posted September 20, 2008 Hi all, Is this syntax correct for: English: If somevariable = Monday or mondaythen somevariable2 = 0 else somevariable = notagreeting if ($_POST["Day"] = Monday or monday) {$day=0} ? thanks Link to comment https://forums.phpfreaks.com/topic/125097-solved-if-something-text1-or-text2/ Share on other sites More sharing options...
Stooney Posted September 20, 2008 Share Posted September 20, 2008 <?php if($_POST['Day']=='Monday' || $_POST['Day']=='monday'){ $day=0; } ?> Link to comment https://forums.phpfreaks.com/topic/125097-solved-if-something-text1-or-text2/#findComment-646500 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.