"Simon Crute" <[EMAIL PROTECTED]> writes: > > > However, I generally tend to view the actual functioning of a form as > > > being on the code side of the code and design divide. > > > > If I decide to take control of the form (restrict a designer from making > > changes), what is the best method to implement the validation? > > I use verify.js function from the javascript in a nutshell book. Seems to > work quite well. > I then use CGI::ArgChecker in the perl. Verify.js only checks for the > existence or not of a paramiter, but that's good enough for me. I'm sure it > wouldn't be too hard for a javascript guru to stick some more info on it.
This is the way to go. Use JS to help the user but never depend on it. Users can turn it off, and then perhaps the page doesn't work at all, or perhaps the error checking doesn't happen and bad data gets into your system. If you check something in JS, always check it again in Perl. --Bill. -- William R Ward [EMAIL PROTECTED] http://www.wards.net/~bill/ ----------------------------------------------------------------------------- If you're not part of the solution, you're part of the precipitate. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
