Re: Code help on a multi select list

From: Date: Fri, 29 Oct 2004 13:36:07 +0000
Subject: Re: Code help on a multi select list
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-200630@lists.php.net to get a copy of this message
Stuart Felenstein wrote:
I would choose javascript to to check this
This response I don't understand. There are 50 options and the intent is to allow 3 of those 50. Then some "genius" comes along and turns off javascripting and chooses all 50. I KNOW it will happen. I wouldn't even dare to dream that it may not. Stuart
Precisely... you can't rely on the the client to do your checking. You need to check from the server side to make sure no one's going to spoof your code. With that in mind, you mind want to implement both client-side and server-side checking. That way, it gives your legitimate users a more user-friendly approach, while still ensuring from the server-side that no one's going to spoof your form. -- Regards, Ben Ramsey http://benramsey.com --------------------------------------------------- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community. ---------------------------------------------------

« previous php.general (#200630) next »