Re: Poll of sorts: Javascript Form validation or PHP

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

 



On Fri, Dec 5, 2008 at 1:28 PM, Terion Miller <webdev.terion@xxxxxxxxx> 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!!
>

No question here. Javascript validation is a nicety, and can catch a
lot of errors without wasting server time or bandwidth, but
server-side validation is a MUST, no questions asked. If the client
has javascript disabled, or someone uses wget, curl, etc. to send
data, it still needs to be validated!

Andrew

-- 
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