Home » HTML » HTML_QuickForm » Bug #8349
Problem with form attributes.
Details
| Submitted | 2006-08-02 22:15 UTC |
|---|---|
| From | erwu at o2 dot pl |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 5.1.2 |
| OS | commerce server(linux) |
| Roadmaps | (Not assigned) |
Comments
[2006-08-02 22:15 UTC] erwu at o2 dot pl
Description:
------------
When i use compare rule to validate form i get wrong value somtimes.
For example i use first Field value "1111111";
second the same value "1111111" it works.
but when i give more complicated exaple "password" / "password" it shows that Field 1 value != Field 2 value.
Test script:
---------------
........
$this->addElement('password','old_pass','Old:',"size='12', maxlength='12'" );
$this->addElement('password','new_pass','New:',"size='12', maxlength='12'" );
$this->addElement('password','new_pass2','New 2:',"size='12', maxlength='12'" );
....
$this->addRule('new_pass2','Match failed..','compare','new_pass');
....
Expected result:
----------------
<input size="12" maxlength="12" name="new_pass" type="password" value="123456789" />
...
<input size="12" maxlength="12" name="new_pass2" type="password" value="123456789" />
RETURN TRUE;
Actual result:
--------------
RETURN FALSE;