00001 <?php 00008 class HiddenField extends AbstractField 00009 { 00013 public function drawInput() 00014 { 00015 if (is_array($this->value)) 00016 { 00017 foreach ($this->value AS $data) 00018 echo "<input type=\"hidden\" name=\"$this->name[]\" value=\"$data\"/>"; 00019 } 00020 else 00021 echo "<input type=\"hidden\" name=\"$this->name\" value=\"$this->value\"/>"; 00022 } 00023 } 00024 ?>