ID must be passed. It can be done through form hidden field or through URL. Choose your way. For security check passed id in controller.
On Sep 6, 8:32 pm, thesti <roronoazorodea...@yahoo.com> wrote: > hi, > > i'm learning CakePHP and i take the Blog tutorial. > > and as i came to the modifying a post part, it's written that if we > supply the 'id' field to the FormHelper then the form will be used to > edit a post. > > when i see the source page, i see that the id is there as a hidden > Input in the edit form. is there any other way in cake to make an edit > form? > > because with javascript we can edit Hidden Input value and i think > it's not secure. > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---