Jump to content

amateur if statement


tet3828

Recommended Posts

 

 

what is the deal with the "OR" in the IF statement? I tried this:

 

if ($_POST['sYear'] or $_POST['sDay'] or $_POST['sMonth']== xxx) {

    do whatever }

 

Why isn't this working? My translation of the above is IF xxx is passed for either of these 3 variables Do this... What my malfunction here? thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/87585-amateur-if-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.