Re: Poll of sorts: Javascript Form validation or PHP

From: Date: Fri, 05 Dec 2008 19:12:21 +0000
Subject: Re: Poll of sorts: Javascript Form validation or PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284189@lists.php.net to get a copy of this message
---- Terion Miller <webdev.terion@gmail.com> wrote: > I have a huge form to validate and wonder which is better javascript > validation or php, the page is a php page, I actually put js validation on > it but then it stopped working (stopped inserting into the db) not sure if > that had anything to do with it.... > What does everyone prefer? > > Terion who is actually finally learning stuff to her surprise!! Never trust users to give you the data you expect. Javascript/Ajax is a nicety but even when adding more things it can be broken. Always double-check and validate everything on the server side. Wolf

« previous php.general (#284189) next »