Treehouse: Grow your CSS skills. Land your dream job.

email form validation

  • # June 29, 2013 at 2:35 am

    yeah so ive never done this without a plugin….this is the code im working with..

    # June 29, 2013 at 4:47 am

    Any browser that supports HTML5 form validation can do this natively. I’ve taken your example and have added attributes which trigger validation.

    The “`required“` attribute is what triggers validation and then you also have different types available for form fields, such as “`number“`, “`email“` etc etc. I encourage you to try and having a read of the [spec]( “spec”).

    # June 29, 2013 at 6:03 pm

    I would recommend validating the form server side with PHP. I have an UUUBER easy tutorial in a book.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.