Re: Server-side Form Validation (Perl)
by "Paul Roberts" <roberts_paul(at)bigfoot.com>
|
Date: |
Sat, 15 Jul 2000 08:39:42 +0100 |
To: |
"'Quackamoe'" <quackamoe(at)yahoo.com>, <hwg-languages(at)hwg.org> |
References: |
GIBRALTAR |
|
todo: View
Thread,
Original
|
|
You should validate all data recieved from a web form if only for security
reasons.
The best method is to use both Javacript on the client (fast) and then
re-check on the server, the simplest way is to just return a missing
information page and ask the user to hit back and correct the problems.
Paul Roberts
roberts_paul(at)bigfoot.com
================================
Paul Roberts <roberts_paul(at)bigfoot.com>
Web Design : CGI Scripts : e-Commerce
Web Graphics : Databases : e-Marketing
================================
----- Original Message -----
From: "Chuck Evans" <Chucke(at)captura.com>
To: "'Quackamoe'" <quackamoe(at)yahoo.com>; <hwg-languages(at)hwg.org>
Sent: Thursday, July 13, 2000 6:49 PM
Subject: RE: Server-side Form Validation (Perl)
> The difficult part of using Perl to validate is that, in the event of an
> error such as a missed required field, you'd have to redraw the page for
the
> user, fill in the fields, and point them to the field with the error.
>
> It can be done. It's just more work than using JS validation.
>
> ---------------------------------------------------------
> Chuck Evans
> Web Marketing Manager
> Captura Software, Inc.
> (425) 424-1155
> chucke(at)captura.com
> http://www.captura.com
>
> -----Original Message-----
> From: Quackamoe [mailto:quackamoe(at)yahoo.com]
>
> All the examples of form validation* I can find
> use JavaScript. I'd like to use Perl instead so
> I don't have to worry about somebody having JS
> turned off. (And because I know Perl a bit more
> than JS.) ;) Even Lincoln Stein's book uses
> JS for this.
>
> I'm guessing I don't have to reinvent this
> particular wheel. Any thoughts? Pointers? Tips?
> URLs? Funny stories? Choice bits of gossip?
>
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA