Location: PHPKode > scripts > OO PHP Library > oo-php-library-1-8a/src/db/TDBHiddenField.php
<?
/*
 * $Id: TDBHiddenField.php,v 1.2 2000/04/14 11:07:56 nightmar Exp $
 */ 
class TDBHiddenField extends TObject {
	var $name;
	var $value;
	var $field;

  	function on_output($val) {
  		if (empty($val))
  			$val = $this->value;
		
  		echo "<INPUT TYPE=HIDDEN NAME=\"$this->name\" VALUE=\"$val\">";
  	}

    function TDBHiddenField($field, $name, $value) {
		$this->name = $name;
		$this->value = $value;    	
		$this->field = $field;
  	}
}

?>
Return current item: OO PHP Library