I would guess it's the use of the $field_prefix variable. You're changing the structure of the form in between the controller sending it and receiving it back - exactly what the Security component is designed to block.
Jeremy Burns Class Outfit http://www.classoutfit.com On 12 Sep 2012, at 07:12:13, Orly Reznik <[email protected]> wrote: > Hi Potential "Save My Day" members, > > I came across this problem, where my hidden fields causes a black hole, when > a Associated model Form is Posted. > This in general, is my Form: > The "is locked" array, points out on to the hidden Contact Model fields (ei > city and id), causing a mismatch in the Token. > > <?php echo $this->Form->create('Member');?> > <fieldset> > <?php > echo > $this->Form->input($field_prefix.'family_id',array('type'=>'hidden')); > echo > $this->Form->input($field_prefix.'contact_id',array('type'=>'hidden')); > echo > $this->Form->input($field_prefix.'term_id',array('type'=>'hidden','value'=>$memberrole)); > > //Associated Model > echo $this->Form->input('Contact.0.city',array('type'=>'hidden')); > > echo $this->Form->input('Contact.0.postcode'); > echo $this->Form->input('Contact.0.phone'); > echo $this->Form->input('Contact.0.cellphone'); > echo $this->Form->input('Contact.0.email',array('value'=>"")); > echo > $this->Form->input('Contact.0.id',array('type'=>'hidden')); > ?> > </fieldset> > <?php echo $this->Form->end(__('Submit', true));?> > > Any Ideas? I really don't want to disable security... > Thanks in advance > Orly > > -- > 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]. > Visit this group at http://groups.google.com/group/cake-php?hl=en-US. > > -- 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]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
