First off, what a well written technical book! Thanks Larry.
I'm working on a project that currently uses JavaScript validation. The page will have PHP functionality later, but after reading chapter 6's validation examples, I got to thinking . . .
Can I have slicker AJAX style same page validation using PHP? This would put the error messages in the same page after form field completion but before submission.
I saw an example elsewhere that essentially points the action to the same page, but it used a lot of "include" scripting. The validation scripting in the book is so simple, yet the JavaScript currently being used in my project seems so unnecessarily clunky.
So, in short, what is the easiest way to augment the validation example in the book for same page validation? Would it be more efficient than AJAX validation?