PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #7558

Bug in value of HIDDEN Field

Details

Submitted2006-05-04 17:09 UTC
Frominfo at luigi-massa dot it
StatusBogus
PackageHTML_QuickForm
PHP Version5.1.2
OSWindows 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