Re: How to submit form elements that are disabled?

2009-01-23 Thread brian
ot;Quantity", >> > >> "disabled"=>"disabled"); >> > >> print $form->hidden('Item.quantityHid'); >> > >> print $form->end('Submit'); >> >> > >> and then in your controller >> &g

Re: How to submit form elements that are disabled?

2009-01-23 Thread Mono
U could try with: $form->input('frmInputQuantity', array('label'=>'Quantity:', 'readonly'=>'readonly')); On 22 Jan., 22:49, Pyrite wrote: > I want to have a form text input get submitted, but also want it to be > disabled on display. > > Eg. $form->input('frmInputQuantity', array('label'=>'

Re: How to submit form elements that are disabled?

2009-01-23 Thread Pyrite
m.quantityHid'); > > >> print $form->end('Submit'); > > > >> and then in your controller > > >> you have to do this > > > >> if(!empty($this->data)){ > > >>     $this->data['Item']['quantyty] = $this->data['Item'][&

Re: How to submit form elements that are disabled?

2009-01-23 Thread Pyrite
;     $this->data['Item']['quantyty] = $this->data['Item']['quantytyHid]; > >>     $this->Item->save($this->data['Item']); > > >> } > > >> i have not tested this yet :P, but i think you could figure it out :)...

Re: How to submit form elements that are disabled?

2009-01-23 Thread Dardo Sordi Bogado
quantyty] = $this->data['Item']['quantytyHid]; >> $this->Item->save($this->data['Item']); >> >> } >> >> i have not tested this yet :P, but i think you could figure it out :)... >> >> hope this help.. >> >

Re: How to submit form elements that are disabled?

2009-01-23 Thread Pyrite
do this > > if(!empty($this->data)){ >     $this->data['Item']['quantyty] = $this->data['Item']['quantytyHid]; >     $this->Item->save($this->data['Item']); > > } > > i have not tested this yet :P, but i think you could figu

Re: How to submit form elements that are disabled?

2009-01-22 Thread Yusuf Widiyatmono
ntytyHid]; $this->Item->save($this->data['Item']); } i have not tested this yet :P, but i think you could figure it out :)... hope this help.. From: Dardo Sordi Bogado To: cake-php@googlegroups.com Sent: Friday, January 23, 2009 9:39

Re: How to submit form elements that are disabled?

2009-01-22 Thread Dardo Sordi Bogado
> I want to have a form text input get submitted, but also want it to be > disabled on display. >From http://www.w3.org/TR/html401/interact/forms.html#h-17.12 : ...the INPUT element is disabled. Therefore, it cannot receive user input nor will its value be submitted with the form. you also need

How to submit form elements that are disabled?

2009-01-22 Thread Pyrite
I want to have a form text input get submitted, but also want it to be disabled on display. Eg. $form->input('frmInputQuantity', array('label'=>'Quantity:', 'disabled'=>'disabled')); This does not get submitted into $this->data. How can I change what gets posted to $this->data with the form help