/** * Add a hidden field to the form * @param string $name The name of the hidden field * @param string $value The predefined value in the hidden field * @param HtmlElement $container (optional) The "container" to add it to **/ public function AddHiddenField($name, $value = null, $container = null) { $field = new HtmlElement('input', array('type' => 'hidden', 'name' => $name, 'id' => $name)); if (RTK::SetAndNotNull($value)) { $field->AddAttribute('value', $value); } $this->AddToContainer($field, $container); }