#23763 [NEW]: button value incorrect after validate()
| From: | nlenz at ivcf dot org | Date: | Thu, 22 May 2003 22:41:22 +0000 |
| Subject: | #23763 [NEW]: button value incorrect after validate() | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-16629@lists.php.net to get a copy of this message | ||
From: nlenz at ivcf dot org
Operating system: Linux
PHP version: 4.3.1
PHP Bug Type: PEAR related
Bug description: button value incorrect after validate()
Run this test, enter "@#$^" into the test field.
After submitting the form, the reset button's value is "Submit" instead of
"Reset".
This is in QuickForm 3.0beta2
<pre>
$form = new HTML_QuickForm('testform', 'post');
$form->setDefaults(array('test'=>'This is a test'));
$form->addElement('text','test','Testing Field:');
$buttons[] = &HTML_QuickForm::createElement('submit', null, 'Submit');
$buttons[] = &HTML_QuickForm::createElement('reset', null, 'Reset');
$form->addGroup($buttons, 'buttons_');
$form->addRule('test','Test must be alphanumeric','alphanumeric');
if ($form->validate()) {
$form->freeze();
}
$form->display();
</pre>
--
Edit bug report at http://bugs.php.net/?id=23763&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23763&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23763&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23763&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23763&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23763&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23763&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23763&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23763&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23763&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23763&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23763&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23763&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23763&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23763&r=gnused