Patches item #668809, was opened at 2003-01-15 15:55
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403613&aid=668809&group_id=31885
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix for of_textarea.php to allow checks of length&content
Initial Comment:
Hi,
the attached "of_textarea.php" is able to handle a min
and a max number of characters in the input, as well as
regex.
Using the following setup will allow 1 up to 3 small
characters:
$f->add_element(array('type'=>'textarea',
'name'=>'comment',
'rows'=>6,
'cols'=>40,
'wrap'=>20,
'minlength'=>1,
'maxlength'=>3,
'length_e'=>'at least 1 up
to 3 chars',
'valid_regex'=>'^[a-z]*$',
'valid_e'=>'only small
chars allowed!',
'value'=>'This is a test
text area!'));
Maybe this is useful if one wants to be sure there will
be input and on the other hand to limit its length from
the beginning on.
Marko
<mailto:mk...@ju...>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403613&aid=668809&group_id=31885
|