Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 442 → Rev 443

/trunk/api/pear/HTML/QuickForm/element.php
17,7 → 17,7
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
// $Id: element.php,v 1.1 2005-03-30 08:50:33 jpm Exp $
// $Id: element.php,v 1.2 2005-09-20 17:01:22 ddelon Exp $
 
require_once('HTML/Common.php');
 
245,10 → 245,11
return '';
} else {
$id = $this->getAttribute('id');
return '<input type="hidden"' .
(isset($id)? ' id="' . $id . '"': '') .
' name="' . $this->getName() . '"' .
' value="' . htmlspecialchars($this->getValue()) . '" />';
return '<input' . $this->_getAttrString(array(
'type' => 'hidden',
'name' => $this->getName(),
'value' => $this->getValue()
) + (isset($id)? array('id' => $id): array())) . ' />';
}
}