Validate Component Data before posting to PHP
I've got my form working, complete with PHP mailing correct info to email.
But I have not figured out how to validate if anything has actually been entered into my "required fields".
I'd like to validate before posting to php - & if nothing at all or invalid data has been entered bring up a "Sorry, but no cigar" message... & visa versa if they do the right thing - "Thanks!" message.
Do I use if/else?
Any good tutorials?