Home » HTML » HTML_QuickForm » Bug #7558
Bug in value of HIDDEN Field
Details
| Submitted | 2006-05-04 17:09 UTC |
|---|---|
| From | info at luigi-massa dot it |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 5.1.2 |
| OS | Windows XP |
| Roadmaps | (Not assigned) |
Comments
[2006-05-04 17:09 UTC] info at luigi-massa dot it
Description:
------------
<create form> and add hidden field...
....
$field_hidden = $form->createElement('hidden');
$field_hidden->setName('testname');
$field_hidden->setValue('testvalue');
$form->addElement($field_hidden);
$form->display();
Test script:
---------------
Attribute VALUE and NAME in HTML source of the field hidden is not correct: name and value of hidden field is not testvalue or testname .
I've find problem in script "input.php"
.....
function onQuickFormEvent($event, $args, &$caller){
....
if (('updateValue' != $event || ('submit' != $type && 'reset' != $type && 'image' != $type && 'button' != $type)).....
}
in Logical expr missing ---- 'hidden' != $type -----
It's correct my correction?
Hi
Expected result:
----------------
Attribute VALUE and NAME in HTML must be testvalue and testname