Often when using the Zend Form components it's convenient to Extend the Zend Form class. To set the action to of the form it will be necessary to access the base url helper method of the view object.
Because you don't have direct access to the view object from inside a Zend Form object, you have to do something like this:
$view = Zend_Layout::getMvcInstance()->getView(); $this->setAction($view->baseUrl().'/media/updatemedia/');