At 9:52 AM -0500 12/12/07, Kenneth Downs wrote:
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


Exactly.

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com
_______________________________________________
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

Reply via email to