How to validate fields with PHP inserted with jQuery
I have a Contact Us page.  On there I want 2 radio buttons letting the user select how they want to be contacted, either through email or telephone.  So when they click on email an email text field appears via jQuery.  And the same for a telephone field.  But then I want to validate either the email field or the telephone field with PHP, testing if it's empty.  

Can this be done?

thanks,
mike
How to validate fields with PHP inserted with jQuery
===

I have a Contact Us page.  On there I want 2 radio buttons letting the user select how they want to be contacted, either through email or telephone.  So when they click on email an email text field appears via jQuery.  And the same for a telephone field.  But then I want to validate either the email field or the telephone field with PHP, testing if it's empty.  

Can this be done?

thanks,
mike