I would like to validate form data with Javascript rather than PHP. I would validate email, limit string length, and have character restrictions. Here is the PHP code that I'm using: I would like to do the same type of validation, except with Javascript so the user doesn't have to refresh the page to see if its valid. An example of this would be the gmail sign up: mail.google.com/mail/signup Any help or a point in the right direction is appreciated. Thanks!