src/UI/HTML/FormElements.php
public static function Form( $name = NULL, $action = NULL, $target = NULL, $enctype = NULL, $onSubmit = NULL )
	{
		$attributes	= array(
			'id'		=> $name		? "form_".$name : NULL,
			'name'		=> $name,
			'action'	=> $action		? str_replace( "&", "&amp;", $action ) : NULL,
			'target'	=> $target,
			'method'	=> "post",
			'enctype'	=> $enctype,
			'onsubmit'	=> $onSubmit,
		);
		$form	= UI_HTML_Tag::create( "form", NULL, $attributes );
		return preg_replace( "@/>$@", ">", $form );
	}
public static function Form( $name = NULL, $action = NULL, $target = NULL, $enctype = NULL, $onSubmit = NULL )
	{
		$attributes	= array(
			'id'		=> $name		? "form_".$name : NULL,
			'name'		=> $name,
			'action'	=> $action		? str_replace( "&", "&amp;", $action ) : NULL,
			'target'	=> $target,
			'method'	=> "post",
			'enctype'	=> $enctype,
			'onsubmit'	=> $onSubmit,
		);
		$form	= UI_HTML_Tag::create( "form", NULL, $attributes );
		return preg_replace( "@/>$@", ">", $form );
	}
public static function Form ( $ name = NULL , $ action = NULL , $ target = NULL , $ enctype = NULL , $ onSubmit = NULL ) { $ attributes = array ( 'id' => $ name ? "form_" . $ name : NULL , 'name' => $ name , 'action' => $ action ? str_replace ( "&" , "&amp;" , $ action ) : NULL , 'target' => $ target , 'method' => "post" , 'enctype' => $ enctype , 'onsubmit' => $ onSubmit , ) ; $ form = UI_HTML_Tag :: create ( "form" , NULL , $ attributes ) ; return preg_replace ( "@/>$@" , ">" , $ form ) ; }
Builds HTML Code for a Form using POST.
@access		public
@static
@param		string		$name			Form Name, also used for ID with Prefix 'form_'
@param		string		$action			Form Action, mostly an URL
@param		string		$target			Target Frage of Action
@param		string		$enctype		Encryption Type, needs to be 'multipart/form-data' for File Uploads
@param		string		$onSubmit 		JavaScript to execute before Form is submitted, Validation is possible
@return		string
Builds HTML Code for a Form using POST .