|
Posted by william.clarke on 08/20/06 22:12
Jerry Stuckle wrote:
> Randy Webb wrote:
> > Jerry Stuckle said the following on 8/17/2006 8:59 PM:
> >
> >> william.clarke wrote:
> >>
> >>>
> >>>
> >>> Hi Chris,
> >>>
> >>> Can I try to clear something up here, Javascript and PHP validation are
> >>> two mutually exclusive activities, the only ways they relate to each
> >>> other are:
> >>>
> >>
> >> PMJI, William,
> >
> >
> > PMJI?
> >
>
> Pardon My Jumping In.
>
> >> No they aren't mutually exclusive.
> >
> >
> > Yes, they are actually.
> >
> >> You can do one, the other or both.
> >
> >
> > That makes them "mutually exclusive" as one does not require the other -
> > in either direction.
> >
>
> Mutually exclusive means you can have one or the other - but not both,
> like having your cake and eating it. You can have it or eat it. But
> you can't do both.
>
> In this case they are not mutually exclusive. You may or may not have
> JS validation, depending on whether the user has JS enabled or not.
>
> But if JS validation succeeds or is disabled, PHP validation will still
> occur. The fact you can have both JS and PHP validation means they are
> not mutually exclusive.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================
Jerry, you a totally correct "mutually exclusive" was a poor choice of
words, "independent" would have been better. I agree with you about the
use of both types of validation. If I have JS validation, I also have
PHP/server-side validation as well.
I guess what I was trying (and failing to point out to the OP) was that
Javascript does not even truly "pass" values directly to PHP validation
code, there is always an intervening HTTP step, even with AJAX.
PMJI, I ended up looking that up in a SMS dictionary before I noticed
your second post :) I'll have to remember it for future use, and please
feel free to jump in any time I make a misleading statement (that goes
for all the others who tried to decode my poorly worded post as well)
Navigation:
[Reply to this message]
|