Re: Quickform textbox rule question

From: Date: Wed, 16 Jun 2004 14:29:14 +0000
Subject: Re: Quickform textbox rule question
References: 1 2 3 4 5 6 7 8  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13185@lists.php.net to get a copy of this message
Tom Melendez wrote:
Does anyone have any ideas about this? It certainly must be possible, right? I *could* use the compare function and compare it with a hidden element, but that seems "dirty". Any other thoughts on this? Thanks, Tom On Tue, 2004-06-15 at 15:30, Tom Melendez wrote:
Hey folks, "quick" quickform question: I need to make sure that the value in a textbox is not greater than a certain number. How do a set a rule for this?
Hint: try the compare rule. You can view the rule source here: http://cvs.php.net/co.php/pear/HTML_QuickForm/QuickForm/Rule/Compare.php?r=1.3 Klaus

« previous php.pear.general (#13185) next »