PDA

View Full Version : Validate Component Data before posting to PHP


Head In A Pan
01-18-2007, 01:19 AM
Hey -
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?
And how?
Any good tutorials?