Re: Validating form input data
- From: "John Dunlop" <usenet+2004@xxxxxxxxxxxxxxxx>
- Date: 30 Apr 2006 10:02:26 -0700
Jerry Stuckle:
Manuel Lemos wrote:
You may want to take a look at this forms generation and validation
class that shows you how to do that. Additionally it generates your
forms with Javascript to validate the form also on the client site,
avoiding unnecessary server round trips just to tell the user the form
has invalid fields.
http://www.phpclasses.org/formsgeneration
And what happens if someone has javascript turned off?
I would assume the brunt of Manuel's class is its server-side
checking. The javascript is, as he said, an *addition*, an addition
which, when javascript happens to be available, obviates the need for a
round trip to the server just to say some field data was unacceptable.
Sounds good to me.
NEVER rely on client side validation!
Fair enough, bears repeating.
--
Jock
.
- References:
- Validating form input data
- From: stathis gotsis
- Re: Validating form input data
- From: Manuel Lemos
- Re: Validating form input data
- From: Jerry Stuckle
- Validating form input data
- Prev by Date: Re: I am looking fo ropen source package for "appointment package" for Doctors
- Next by Date: ARRAY - straightforward question?
- Previous by thread: Re: Validating form input data
- Next by thread: Re: Validating form input data
- Index(es):
Relevant Pages
|