Form manipulation

2008-12-04 Thread ravi4shek...@gmail.com
Hi All, I am new to cakephp framework I am facing a problem I have some fields in my form and when the data is posted by the user apart from that I also need to store users id which is stored in session and the current date. since these two fields I have not kept in the form controller is not

Re: Form manipulation

2008-12-04 Thread krishna
Hi, follow this code, if(!empty($this-data)){ $this-data['User']['user_id'] = $this-Auth-user('id'); $this-data['User']['current_date'] = date('Y-m-d'); $this-User-save($this-data); } === for get the db driven select box, use the find syntax with list attribute. ex:

Re: Form manipulation

2007-10-19 Thread 2000Man
I figured out the problem: the key set in the form is not the same as the one in the Session.Somehow the latter one get's generated again somewhere. I have added some logging throughout the system and this is wat happens: 2007-10-19 10:16:36 Error: Dispatcher::start(Forumposts) 2007-10-19

Re: Form manipulation

2007-10-18 Thread 2000Man
Hi larry, I should have don't that before starting my topic here, because the Security-component has been greatly improved! Sorry for bothering you.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group.

Re: Form manipulation

2007-10-18 Thread 2000Man
Maybe I was too quick with that conclusion. Actually somehow only the loginform works properly, but I'm still looking for the difference between that form en the others (except from the different models)... Anyone else is having problems with the Security component? On 18 okt, 16:58, 2000Man

Re: Form manipulation

2007-10-17 Thread 2000Man
Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: Form manipulation

2007-10-17 Thread Wayne Fay
I'm curious... why do you care if fields are removed? Wayne On 10/17/07, 2000Man [EMAIL PROTECTED] wrote: Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: Form manipulation

2007-10-17 Thread Larry E. Masters aka PhpNut
Have you tested that it is in fact possible to remove fields from a form when using the SecurityComponent? -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On 10/16/07, 2000Man [EMAIL PROTECTED] wrote: Hi

Re: Form manipulation

2007-10-17 Thread 2000Man
Hi Larry, I have indeed tested it. Adding fields isn't posible, but removing them is. @Wayne: I care, because it makes it possible for people to skip required fields. I think can be solved by making model::validates also check for the presence of all fields in $validate in the data array. Of

Re: Form manipulation

2007-10-17 Thread Larry E. Masters aka PhpNut
I have indeed tested it. Adding fields isn't posible, but removing them is. If this is true, I need to see a test case for this. You can not remove any fields in the forms when using the SecurityComponent in combination with the FormHelper methods. You can not alter the hidden fields or their

Re: Form manipulation

2007-10-17 Thread 2000Man
Hi Larry, Currently I'm using the Development: 1.2.0.5427alpha version, let me try it with the current nightly build.. On 17 okt, 13:05, Larry E. Masters aka PhpNut [EMAIL PROTECTED] wrote: I have indeed tested it. Adding fields isn't posible, but removing them is. If this is true, I need

Form manipulation

2007-10-16 Thread 2000Man
Hi guys, I've been playing around with the Security-component, which is able to prevent forms to be manipulated (fields being added to the form). This works perfectly, but there is still another problem: by downloading and manipulating it isn't possible to add fields, but is is still possible to