Hi everyone,
I'm searching for a way to validate selectboxes. I'm using the
SecurityComponent and Cake 1.2.
Let's assume I want to write an article. The article belongs to one
category and the categories are stored in my database and therefore
dynamic.
So I have a selectbox on my form for the category. The values are
retrieved with a simple
$this->News->Category->find('list');
Validating the category only to be a number is not enough, as the
attacker could submit a number, that is not part of one of my
categories.
I thought about using the build-in "inList" rule, but how do I tell
cake to use my category list?
Thanks for your help!
Markus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---