Form Validation with PHP and AJAX
I'll admit that I am not as interested in AJAX as some. I do see some valid uses, but I also think that less is more when it comes to JavaScript. AJAX when used as a drop down suggest isn't that useful in my opinion and falls into a toy category that can quickly take an interface from useful to a little too cutesy for my taste.
Where I am interested in AJAX is in the realm of form validation. Form validation is a necessary evil. It's not very usable for the user, and adds a ton of code to an otherwise sane function. In the same breath, we need to validate our forms to secure our backends, as well as take the variation out of our input. I would love to have a couple of places for lengthy validation such as role registration and profile updating for the elegance and usability.
Chris Campbell has written a pretty nice tutorial on a method for form validation with a graceful fallback for folks that have disabled JavaScript when browsing. ASP and PHP are both illustrated in the article.
3 Comments
Jump to comment form | comments rssWarning: Invalid argument supplied for foreach() in /home/niceguy/public_html/var/cache/templates/c71f60f688f84ae1cdfd7639a9815a39.php on line 3