PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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