Re: Poll of sorts: Javascript Form validation or PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux