1
The answer to my question may be complex, or blindingly obvious (probably the latter).
Here goes...
In PHP, is there a way of performing a function if multiple conditions are true, and if any are false, doing something else. Okay, of course there is - but how do I do it?
Incase you don't get what I mean:
I have three user input fields that I want to check are filled with only numbers (using a regular expression). I want to make it so that if any of these fields do not match the regular expression, my script will say "you entered a load of rubbish"
For example - this how it might be coded if I'd invented php!
If($_GET['a']==//a number) and ($_GET['b']==//a number) and ($_GET['c']==//a number) {
example_function();
} else {
print_mistake_message
Any help much appreciated