php - Zend Framework 1 - Submit Button Does Not Function (No Post upon click) -


all of functions within form work - getting max , credit balances, session functionality, etc. however, submit button, when clicked, nothing. should processed controller page form lives, it's not getting far. no request posts. if can me, i'd appreciate it.

<?php class application_form_redeem extends zend_form { protected $identity;  public function init() {      //make sure doesn't accept number greater available balance     $this->identity = zend_auth::getinstance()->getidentity();     $username=$this->identity->username;          $users = new application_model_dbtable_user();     $creditbal=$users->getcreditbal($username);      //make sure doesn't accept number greater maxredemption     $sess = new zend_session_namespace('businessid');     $retailerid = $sess->id;      //echo "retailerid: " . $retailerid;      $partners = new application_model_dbtable_partners();     $maxredemption= $partners->getmaxredemption($retailerid);             // create validator chain , add validators     $validatorchain = new zend_validate();      $validatorchain         ->addvalidator(new zend_validate_greaterthan(array('min' => 0,)))         ->addvalidator(new zend_validate_lessthan(array('max' => $creditbal+0.01,)))         ->addvalidator(new zend_validate_lessthan(array('max' => $maxredemption+0.01,)))     ;      $this->setmethod('post');     $this->setname('redeem-form');     $this->setattribs(array('style' => 'text-align:left;position:relative;'));      $this->addelement('text', 'redeemamount', array(             'label' => '  n',             'class' => 'redemptionamount',             'size' => '15',             'required' => true,             'validators' => array(                      array(                             'validator'     => $validatorchain,                     ),                                   ),//end validators aray     ));      $this->adddisplaygroup(array(             'redeemamount',                                          ),'redemptionamount', array('legend' => ''));       $this->addelement('submit', 'submitredemption', array(             'ignore' => true,             'class' => 'redeem',             'label' => 'redeem ',     ));       $this->adddisplaygroup(array(             'submitredemption',     ),'submitredemption', array('legend' => '')); } 

}


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -