Re: form validation
From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 04/07/04
- Next message: Peter Foti: "Re: asp and access db - edit textarea"
- Previous message: Peter X: "Re: Can I use progID with TypeLib instead of UUID?"
- In reply to: Rudi Ahlers: "Re: form validation"
- Next in thread: CJM: "Re: form validation"
- Reply: CJM: "Re: form validation"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Apr 2004 15:11:00 -0400
Rudi Ahlers wrote:
> Relating to this question, and stop me if I'm wrong, but isn't it
> better to address form validation from the server side, in this case
> ASP, than from the client side?
> What if the user's browser is Links / LYNX / Nokia browser / WebTV /
> some other funny browser that doesn't support all the JAVA, or even
> any JAVA at all?
> Or rather, what if the user is paranoid and turned it off totally?
> Wouldn't it be better to then see if the necessary fields are filled
> in, and if it should be number (phone / fax / id number / bank
> account) that it's only numbers and of the correct length?
>
>
Actually, both client and server-side validation should be done if possible.
Client-side validation is good because it avoids extra trips to the server
just to find out, for example, that a number field had alpha characters
entered into it.
Server-side validation must be done because hackers have been known to
submit data to server-side code without using our well-thought-out data
entry forms. Also, as you say, browser capability may prevent the
client-side code from running.
Bob Barrows
-- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
- Next message: Peter Foti: "Re: asp and access db - edit textarea"
- Previous message: Peter X: "Re: Can I use progID with TypeLib instead of UUID?"
- In reply to: Rudi Ahlers: "Re: form validation"
- Next in thread: CJM: "Re: form validation"
- Reply: CJM: "Re: form validation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|