setName("Delete"); $this->setMethod('post'); $this->addElement('text', 'ID', array( 'filters' => array('StringTrim'), 'validators' => array( array('StringLength', false, array(0, 50)), ), 'required' => true, 'label' => 'ID:', )); $this->addElement('submit', 'delete', array( 'required' => false, 'ignore' => true, 'label' => 'Delete', )); } }