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 #491

when to addGroup("radio",$key) is passed key=0 name is not displayed

Details

Submitted2003-12-24 14:19 UTC
Fromwebmaster at detectomania dot com
StatusBogus
PackageHTML_QuickForm
PHP Version4.3.4
OSLinux Debian 2.4
Roadmaps(Not assigned)

Comments

[2003-12-24 14:19 UTC] webmaster at detectomania dot com

Description:
------------
When $key value = 0 and I try to add a radio element form, the property 'name="0"' it´s not displayed, but it works right when $key = string.

$form->addGroup("radio", $key,$foo,$foo)

<< $key = 0 >>
<input value="0" type="radio" id="qf_bab5ac" checked="checked" />

<< $key = 1 >>
<input value="0" type="radio" id="qf_9c3bc0" name="1" checked="checked" />

Reproduce code:
---------------
$form->addGroup("radio", $key , "title":',"< /BR>");

Expected result:
----------------
<< $key = 0 >>
<input value="0" type="radio" id="qf_9c3bc0" name="0" checked="checked" />

Actual result:
--------------
<< $key = 0 >>
<input value="0" type="radio" id="qf_bab5ac" checked="checked" />