Location: PHPKode > projects > GnomePHP > peec-GnomePHP-b5a360b/gnomephp/form/Submit.php
<?php
namespace gnomephp\form;

class Submit extends FormField{
	
	
	public function __construct($formId, $url, $name='submit', $value=null, $props=array()){
		$props['type'] = 'submit';
		
		parent::__construct($formId, $url, $name, $value, $props);
	}
	
	
	public function __toString(){
		return '<input '.
			($this->name ? 'name="'.$this->name.'"' : '').
			$this->buildProps($this->props).
			($this->value ? 'value="'.$this->value.'"' : '').
			' />';
	}
	
}
Return current item: GnomePHP