Email form

hi.

what is the best way to create an email form where onsubmit it checks the fields to make sure, for instance, that there is an @ in the email field. right now i’m working with 3 fields and i want to run a check after submit is checked.

thanks. fumeng.