David Krings wrote:
tedd wrote:
At 12:16 PM -0600 12/11/07, Tony Furnivall wrote:
Newbie request -
Any pointers? ideas? suggestions?
Yes, use javascript and inform the user in real-time and before they
send the junk to the server. Of course, you then have to scrub and
clean everything, but you would have to anyway.
That works OK for something like a date or making sure that a
mandatory entry exists, but for example for a user name that has to be
unique you need to check it against your tables. Can't do that with
ECMAScript.
It helps to picture it this way:
1. Javascript is for user convenience, avoid submitting mismatched
passwords, malformed dates and so forth.
2. Server checks are about integrity, unique, referential and other
constraints
David
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
--
Kenneth Downs
Secure Data Software, Inc.
www.secdat.com www.andromeda-project.org
631-689-7200 Fax: 631-689-0527
cell: 631-379-0010
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php