[thelist] OnBlur and CFIF together?
jeff
jeff at members.evolt.org
Wed Jul 19 23:34:36 CDT 2000
aaron,
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: "Czechowski, Aaron" <aczechowski at towson.edu>
:
: so you suggest/recommend doing BOTH types of validation?
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yes. server-side as a standard and client-side everywhere that's possible.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: client-side for ease of use, and server-side just-in-case? but if
: your client-side is thorough, you shouldn't need to waste time on
: server-side validation, right?
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
client-side to ease the load on the server. server-side to guarantee the
accuracy of the data going into the database.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: or is your thinking that for older browsers that might not be able
: to handle all of the fancy javascript validation?
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
no, you can never be guaranteed that the data coming from the browser is
accurate and correct, even if your form has client-side validation. you
can't even be guaranteed that it's coming from your form. so, to stop
someone from downloading your form page to their system, hacking out your
client-side validation and submitting bogus data you validate server-side as
well.
good luck,
.jeff
name://jeff.howden
game://web.development
http://www.evolt.org
jeff at members.evolt.org
More information about the thelist
mailing list