Advertisement
Guest User

Untitled

a guest
May 2nd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. <?php
  2.  
  3. class getLoginForm extends zend_Form {
  4.    
  5.  public function __construct($option = null){
  6.       parent::__construct($option);
  7.      
  8.       $this->setName('login');
  9.      
  10.       $username = new Zend_Form_Element_Text('username');
  11.       $username->setLabel('User Name')
  12.              ->setRequired();
  13.       $password = new Zend_Form_Element_Password('password');
  14.       $password->setLabel('Pass')
  15.              ->setRequired();
  16.      
  17.       $login = new Zend_Form_Element_Submit('login');
  18.       $login->setLabel('Login!');
  19.      
  20.       $this->addElements(array($username,$password,$login));
  21.       $this->setMethod('post');
  22.       $this->setAction('/authentication/login');
  23.      
  24.    }
  25. }
  26.  
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement