note 57797 added to function.array-count-values
| From: | coda at bobandgeorge dot com | Date: | Fri, 14 Oct 2005 12:52:25 +0000 |
| Subject: | note 57797 added to function.array-count-values | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97016@lists.php.net to get a copy of this message | ||
alwaysdrunk's comment only works if you can trust the client web browser. Using this function
doesn't validate that every necessary field exists -- only that every field that was submitted
has a value in it. Thus if an attacker wished to force a null value into one of the fields, he could
(rather easily) construct a modified form without the field and submit THAT.
Besides, you really ought to be validating each field anyway if you're taking user input.
----
Manual Page -- http://www.php.net/manual/en/function.array-count-values.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57797
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57797&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57797&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57797&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57797&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57797&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57797&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57797&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57797&report=yes
Search -- http://master.php.net/manage/user-notes.php