http://www.dereuromark.de/2010/06/23/working-with-forms/
2nd paragraph

On 10 Aug., 15:52, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> Use the 'default' option:
>
> echo $this->Form->input('fieldName', array('default' => 'your default'));
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 10 Aug 2010, at 14:47, james wrote:
>
>
>
> > I'm passing some variables from a view to an add and I would like
> > those variables to be preset in some of the input fields.
>
> > So for in lead->view.ctp i get the variable $leads['Lead']
> > ['business_name'];
>
> > and pass it to appointment->add.ctp.
>
> > in this second view the field business name (still an input) would
> > then have that data already in the field.
>
> > Thanks!
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > 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 
> > athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to