public function getHTML() {
        $tag = '<form';
        $q = $this->quoteType;

        //build attribute strings
        foreach( $this->attrs as $name=>$value ) {
            //if true, such as CHECKED, we just add the name
            if( $value === true )
                    $tag .= " $name";
            elseif( is_string( $value ) ) //if it's a string, we add attr="value"
                    $tag .= " {$name}={$q}{$value}{$q}";
        }

        //not a short tag, close it
        $tag .= '>';

        //add the children if they exist
        if( $this->hasChildren() ) {
            for( $i = 0; $i < count( $this->children ); $i++ ) {
                //datalists are hidden and should not be decorated
                if( $this->children[$i] instanceof Element\Datalist ) {
                    $tag .= $this->children[$i]->getHTML();
                } else {
                    $tag .= $this->decorator->element( $this->children[$i]->getHTML(), $this->titles[$i] );
                }
            }
        }

        //closing tag
        $tag .= "</form>";

        return $this->decorator->form( $tag );
    }
public function getHTML() {
        $tag = '<form';
        $q = $this->quoteType;

        //build attribute strings
        foreach( $this->attrs as $name=>$value ) {
            //if true, such as CHECKED, we just add the name
            if( $value === true )
                    $tag .= " $name";
            elseif( is_string( $value ) ) //if it's a string, we add attr="value"
                    $tag .= " {$name}={$q}{$value}{$q}";
        }

        //not a short tag, close it
        $tag .= '>';

        //add the children if they exist
        if( $this->hasChildren() ) {
            for( $i = 0; $i < count( $this->children ); $i++ ) {
                //datalists are hidden and should not be decorated
                if( $this->children[$i] instanceof Element\Datalist ) {
                    $tag .= $this->children[$i]->getHTML();
                } else {
                    $tag .= $this->decorator->element( $this->children[$i]->getHTML(), $this->titles[$i] );
                }
            }
        }

        //closing tag
        $tag .= "</form>";

        return $this->decorator->form( $tag );
    }
public function getHTML ( ) { $ tag = '<form' ; $ q = $ this -> quoteType ; //build attribute strings
 foreach ( $ this -> attrs as $ name => $ value ) { //if true, such as CHECKED, we just add the name
 if ( $ value === true ) $ tag .= " $name" ; elseif ( is_string ( $ value ) ) //if it's a string, we add attr="value"
 $ tag .= " {$name}={$q}{$value}{$q}" ; } //not a short tag, close it
 $ tag .= '>' ; //add the children if they exist
 if ( $ this -> hasChildren ( ) ) { for ( $ i = 0 ; $ i < count ( $ this -> children ) ; $ i ++ ) { //datalists are hidden and should not be decorated
 if ( $ this -> children [ $ i ] instanceof Element \ Datalist ) { $ tag .= $ this -> children [ $ i ] -> getHTML ( ) ; } else { $ tag .= $ this -> decorator -> element ( $ this -> children [ $ i ] -> getHTML ( ) , $ this -> titles [ $ i ] ) ; } } } //closing tag
 $ tag .= "</form>" ; return $ this -> decorator -> form ( $ tag ) ; }
Returns the HTML string.

@return string The HTML string.
Returns the HTML string .