The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Why on earth would anyone (other than sub-fecies level scum) EVER recommend using javascript form validation? If a person wants validation because it is pretty......

I realize that rainbows, bunnies, springtime dresses, and javascript alert messages may look pretty but I can't possibly fathom how I've been let down by the system to this degree.

Well, I'm glad I only wasted 100 hours on javascript validation. It would have sucked if I had put any significant amount of time into learning a system that is a complete waste of time for anything other than the creation cotton candy-esque effects.

I suggest we begin a new "Final Solution" to rid the world of the wretched waste known was "javascript" and anyone who endorses it. Speaking of which. If javascript can not adequately validate form data, what can it do? Is there a single purposes (beyond cutesy stuff and the temporary ruining of my life) that javascript can do?

Validation should always take place server-side. Nefarious users may not even submit via your form; they could use a script that sends an HTTP request directly to your server.

Then you can add client-side validation via JavaScript as an add-on (progressive enhancement). It will give faster response to the majority of users who have JavaScript enabled, and it will reduce the load on your server by avoiding unnecessary round trips to it.

But you should always build the page with server-side validation first, and add client-side validation afterwards.