Conditional Validation: Both cannot be blank
I want Validation Toolkit to insist that I receive either a cell phone number or a land number from my form. One of ['cellphone'] OR ['contactphone'] is required, but both can be provided if desired.
Suppose my error message is "NO". What coding must surround "NO" so Validation Toolkit does what I want and shows "NO" if both phone number fields on my form are left blank?
Please keep this very very simple! I am learning fast ... but I am obviously still a newbie. I've tried experimenting with:
!isset($_POST['contactphone']?!$_POST['cellphone']:"NO" but it's not working out. Either I have that wrong, or I am inserting it in the wrong place.