Käynnissä

5662 Quick PHP condition statement

I have a current snippet of code - if ([at]$_POST['Q1'] == 1 and ($_POST['Q1a'] == 2 or $_POST['Q1a'] == 3 or $_POST['Q1a'] == 4) and ($_POST['Q2'] == 8 or $_POST['Q2'] == 9) and $_POST['Q3'] == 3 and ($_POST['Q4'] == 1 or $_POST['Q4'] == 2 or $_POST['Q4'] == 3) and $_POST['Q5'] [greater than] 6 ) I would like to add checks to make sure that the value of string field Q6 does not contain maxwell, folgers, or foldgers (and possibly more) to this. I'd need the script to be case insensitive. I thought I might do it with the following but it's not working so your help would be appreciated and paid for. if ([at sign]$_POST['Q1'] == 1 and ($_POST['Q1a'] == 2 or $_POST['Q1a'] == 3 or $_POST['Q1a'] == 4) and ($_POST['Q2'] == 8 or $_POST['Q2'] == 9) and $_POST['Q3'] == 3 and ($_POST['Q4'] == 1 or $_POST['Q4'] == 2 or $_POST['Q4'] == 3) and $_POST['Q5'] [greater than] 6 and (strpos(strtolower($_POST['Q6']),"maxwell") != "0" )

Taidot: kaikki käy, PHP

Näytä lisää: maxwell, condition, php string contain, quick php script, string php, sign php string, statement php, paid quick, script greater, php value script, php string, quick php, sign script php, php statement, php code add field, add condition

Tietoa työnantajasta:
( 31 arvostelua ) Teaneck, United States

Projektin tunnus: #1756531

Myönnetty käyttäjälle:

Petruchek

Just accept my bid

20 $ USD 0 päivässä
(0 arvostelua)
0.0