I may not be fully understanding your request, but it seems you could do 
something like the following in your action (the one the form's posting to):


if ( $this->getRequest()->isPost() && 'valueOfChecboxWhenChecked' == 
$this->_request->getParam( 'nameOfCheckBox' ) )
{
        $this->_redirect( 'controllerWantToGoTo/actionWantToGoTo' );
}
else
{
        $data = $this->_request->getPost();
        // or whatever else you want to do with the data
}



----
Jeremy Brown
Senior Web Developer
Spear One
972.661.6038
www.spearone.com


-----Original Message-----
From: Rohit83 [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2008 6:16 AM
To: [email protected]
Subject: [fw-general] Zend_form Action Redirect


Hi All,
I have developed one form containing one text box and check box and submit
button
if i checked the check box and clicked on submit  i want to redirect it on
another action
and when the checkbox remains unchecked and by clicking on submit button the
value
of text box should be accessed within isPost() of same action
How can i do that?
thanks in advance for your valuable answer
Regards
Rohit
--
View this message in context: 
http://www.nabble.com/Zend_form-Action-Redirect-tp19529644p19529644.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to