Although I wouldn't consider myself a noob, I am still learning about the many facets of PHP. I have encountered a need to write an if statement that will generate an error if the specific criteria are not met.
Here's the deal...
There are four fields that a user can type in a specific quantity.
Those four fields are named:
wild_mush_qty spinric_rav_qty cava_qty tort_qty
When completed, the if statement needs to add up those fields to make sure it is in an increment of four.
So basically you can fill out the four fields listed above with any value, as long as the total between the four is evenly divided by four. Not sure if that makes it easier to understand, but yeah, that's what I'm looking to do.
Can anyone help me to get this started?
My deep appreciation and thanks for the help.