NYCPHP Meetup

NYPHP.org

[nycphp-talk] Managing form data with PHP

tedd tedd at sperling.com
Wed Dec 12 09:57:41 EST 2007


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



More information about the talk mailing list