You have two options as far as I know:

One is the gather the select values in the controller action and pass
them on to the view using the controllers set method
See http://book.cakephp.org/view/57/Controller-Methods#set-427

Two is to gather the select values from within the view using the
requestAction to invoke a controller action which gathers and returns
the select values.
See http://book.cakephp.org/view/57/Controller-Methods#requestAction-434

Enjoy,
   John


On May 5, 3:16 pm, MANOJ DHAMAL <manoj.dham...@gmail.com> wrote:
> hi ,
> I am using combobox in view.ctp like
>
> <?php echo
> $form->select('perpage_id',$per_page,null,array('id'=>'perpage'),false); ?>
>
> In the same ctp(view.ctp) i want fetch selected value of combobox in
> variable
>
> $perpage= //HERE IS CODE TO GET VALUE OF COMBOBOX;
>
> Idont know how to fetch values of fields before submit the form in cakephp.
> Please give solution...
>                                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