Re: Poll of sorts: Javascript Form validation or PHP

From: Date: Sat, 06 Dec 2008 08:33:24 +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-284232@lists.php.net to get a copy of this message
On Fri, 5 Dec 2008 12:28:08 -0600, Terion Miller 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? As per all others here (and nice to see that!) I say always validate in PHP, and if you have time, add JavaScript to improve the user experience. Never trust your inputs to be valid; always check in PHP. >Terion who is actually finally learning stuff to her surprise!! Good, because when you stop learning is when you start dying... -- Ross McKay, Toronto, NSW Australia "Before enlightenment: chop wood, carry water; After enlightenment: chop wood, carry water" - Wu Li

« previous php.general (#284232) next »