Hi

I had real trouble finding this the first time too.

save(array $data = null, boolean $validate = true, array $fieldList =
array())

$fieldList is an array of the fields you actually want to save.

http://book.cakephp.org/view/75/Saving-Your-Data

John

On Jan 15, 12:39 pm, K3 <[email protected]> wrote:
> Hi,
>
> if for example end user changed the html form and adds another field,
> he can update another field.
> What i mean by example is changing:
>
> <form action="/groups/add" method="post">
>    <input type="text" name="data[Group][name]"/>
> <input type="submit" value="Submit"/></form>
>
> to
>
> <form action="/groups/add" method="post">
>    <input type="text" name="data[Group][name]"/>
>    <input type="text" name="data[Group][access_level]"/>
> <input type="submit" value="Submit"/></form>
>
> then access_level field will be updated.How can i prevent this?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to