I have seen examples of form validation to check wether a field is present or not.
But I want to give the choice to search a MySQL database by Name, Town or postcode so I need to validate the submit form and check for either a name or town or a postcode but not allow all fields to be blank at once.
So any one or two fields to be blank is OK but never all three, although individually they can occasionally be blank- do you see what I mean?
I've searched but cannot find any example although I thought this must be a common requirement.
Any help or especially code examples will be greatly appreciated.