setName('soapform'); $this->setAction('/demo/requete'); $this->setMethod('post'); $this->addElement('text', 'siret', array( 'filters' => array('StringTrim'), 'validators' => array( array('stringLength',false,array(9,14)), array('NotEmpty', true), ), 'label' => 'Siret : ', 'required' => 'true', ) ); $this->addElement('submit', 'submit', array( 'label' => 'Envoyez', )); } }