views:

14

answers:

1

Hello, how to handle the lengh of a form input in ZEND FRAMEWORK.K I WOULD LIKE TO HAVE A MAX OF 4 characters in my zend form element ! Thank you in advance

A: 

Possible duplicate Try this for size :

$element = new Zend_Form_Element_Text('test')
$element->setAttrib('size', '4');

You may want to have a look at the ZF documentation too : link

piddl0r
thank you, wonderful ! it works
Mamadou
tx, it works fine
Mamadou