If you want to pass data via form post the above answer is ok..if you wanna post via url then you need to use zend routers
step 1: Create a routes.xml file in application folder with content
<?xml version="1.0" encoding="UTF-8"?>
<routes>
<manual>
<route>/foo/bar/:key</route>
<defaults>
<controller>yourController</controller>
<action>YourAction</action>
</defaults>
</manual>
</routes>
step :2
In your boostrap.php add this,
protected function _initRoutes()
{
$routefile = new Zend_Config_Xml(APPLICATION_PATH.'/routes.xml');
$router = Zend_Controller_Front::getInstance()->getRouter();
$router->addConfig($routefile);
return $router;
}
Thats it..when ever an url for the form www.eg.com/foo/bar/5 occurs, you can get the value 5 in YourController,Youraction by this way $this->_request->getParam('key');