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

Fields of type "hidden" produce errors

Details

Submitted2005-01-15 23:54 UTC
Fromcontact at nelsonford dot net
StatusBogus
PackageHTML_QuickForm
PHP Version5.0.3
OSMac OS X 10.3.5
Roadmaps(Not assigned)

Comments

[2005-01-15 23:54 UTC] contact at nelsonford dot net

Description:
------------
My hidden fields won't display. I am using smarty for my
templates and have had no trouble with other field
types. I get error Undefined index

Reproduce code:
---------------
$form->addElement("hidden", "type", "profile_content");
$form->addElement("text", "name", "Name:");

//code to pass values to smarty and display templates

{$form_data.name.html}
{$form_data.type.html}

Expected result:
----------------
A name field and a hidden field

Actual result:
--------------
A name field and:

Notice: undefined index: type in /path/to/webroot/
template.tpl on line 22