Quickform vaildation rules

From: Date: Wed, 06 Aug 2003 13:58:31 +0000
Subject: Quickform vaildation rules
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7051@lists.php.net to get a copy of this message
I have a Quickform with a validation rule stating that a textarea is "required". That works well. I have three buttons on the form, "Clear", "Submit" and "Cancel". The first is the standard reset button; the latter two are submit buttons. The problem I have: if the "Cancel" button is clicked with the textarea empty, I get the expected validation error. I really want a rule that says "(textarea required) OR (btn='Cancel')". Is there a way of achieving this? -- Keith Edmunds

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