$this->redirect(array('controller' => $controller, 'action' =>
$action, $id, 'named' => $named, 'named2' => $named2));On Feb 22, 9:58 am, newguy <[email protected]> wrote: > Hi > I have a simple form in my view where the user enters a 4 digit > numeral code, in the controller action am unable to access this code, > it would be great if some one could tell me how to access this code in > the action and then pass this code as a parameter to another > controller action. > > *******Form********** > <p>Enter User Code</p> > <?php echo $form->Create('Admin',array('action'=>'view_specific')); > echo $form->input('Code'); > echo $form->end('Submit'); > ?> > > *********Action************ > function view_specific() > { > if($this->data) > { > // $code=get data from teh form; > > > //$this->redirect(array('action'=>'view_specific_result', > $code)); > > } > } > > Thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
