Add this to your before filter.
$this->Security->disabledFields = array('selected');
http://milesj.me/blog/read/security-protection
On Dec 14, 12:16 pm, eugenefphillips <[email protected]>
wrote:
> I am using CakePHP 1.3, and I keep getting a black hole error. The
> error is happening in the _validatePost function where it returns the
> $token === $check, because they do not equal each other.
>
> I have two forms on one page. I am using the form helper to generate
> the forms, closing the forms, and generating the inputs.
>
> The first form allows for the user to filter the data, and this form
> is working when I submit it.
>
> The second is where the black hole error happens. The form contains
> radios button that I am generating the value for when it is created.
>
> Here is my attributes array
> $radioAttributes = array(
> 'legend' => false,
> 'label' => false,
> 'name' => "data[ModelName][main Id for the group][selected]"
> 'hiddenField' => false);
>
> Here is my option array
> $radioOptions = array($array[$i][' ModelName l']['id'] => '');
>
> Here is the code for the radio buttons.
>
> Radio button $this->Form->radio("ModelName.an ID.selected",
> $radioOptions, $radioAttributes);
>
> The form could easily have anywhere between and 1 and 800 buttons.
>
> I have a JavaScript that manipulates a span at the bottom of the page.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php