Form validationmake sure that whats submitted is right

The great news is, cformsII provides nifty, awesomely CSS styled, server-side validation already built-in and ready to go. You can see if I click on Submit on my form without filling out the required details, or an improperly formatted e-mail address, the form reloads showing me the fields that are incorrect.

Register for: Find Out More About Us

Please fill in al3 the required fields, pPlease fill out the following. *

= Required-

The Event:

Find Out More About Us

Your Name*

I

Email*

[valid email required)

How Many:

just me

What you can bring

If you can volunteer to bring any supplies, snacks. Leverages to the meeting, please let us know.

But why wait until the user clicks on the Submit button? While server-side validation is essential and the only way to properly validate data, by adding in a little client-side validation, with jQuery, we can easily enhance and speed up the user's process by alerting them as they work through the form that they're missing details or have data improperly formatted.

Why is server-side validation important?

Client-side validation with JavaScript and jQuery should never be relied on for data validation or to prevent improperly formatted information from being submitted and sent to the server. Users can always disable JavaScript in their browser and then submit any values they want (sometimes using improperly formatted values to hack into your server through the form). Client-side validation, for this reason, should only be used to enhance the user's experience and not actually protect the server or data integrity.

Blogging For Business

Blogging For Business

Download this Guide And Discover How Start And Run Your Very Own Successful Business Blog. Always Wanted To Start Your Own Blog?

Get My Free Ebook


Post a comment