asdfg Posted August 22, 2012 Share Posted August 22, 2012 Hello, I want to know how I can make a "if empty" script to a "if $keuze". So when somebody don't scroll down a select box and make a different choose then the first option the contact form don't works. Now i have this if(empty($bedrijfnaam) OR empty($postcode) OR empty($adres) OR empty($plaats) OR empty($email) OR empty($voorletter) OR empty($naam) OR empty($krijgen) OR empty($betreft) OR empty($rechtsvorm) OR empty($holdings) OR empty($uitbesteden) OR empty($omzet) OR empty($facturen) OR empty($facturenver) OR empty($afschrift)) { echo "Your forget something."; Does anyone how I can do this. Thanks Quote Link to comment Share on other sites More sharing options...
Christian F. Posted August 22, 2012 Share Posted August 22, 2012 What's an "if $keuze" script? What does "keuze" even mean? Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 22, 2012 Share Posted August 22, 2012 $keuze is clearly a PHP variable...and OP speaks another language as their primary. *shrug* Why don't you just take the first option out of the dropdown? If you insist on doing it that way, you'd do it like this: if($select == 'value'){ echo 'Error'; } Quote Link to comment 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.