src/HtmlGenerator.php
/**
     * Generates what appears to be just a button but is actually a submittable
     * form that will post itself or the specified postUrl. 
     * 
     * @param label      - the text to display on the button
     * @param postfields - name/value pairs of data posted when the form submits
     * @param postUrl    - optional address where the form should be posted.
     * 
     * @return string - the generated html for the button form.
     */
Generates what appears to be just a button but is actually a submittable
form that will post itself or the specified postUrl.

@param label      - the text to display on the button
@param postfields - name/value pairs of data posted when the form submits
@param postUrl    - optional address where the form should be posted.

@return string - the generated html for the button form.
Generates what appears to be just a button but is actually a submittable form that will post itself or the specified postUrl . @param label - the text to display on the button @param postfields - name / value pairs of data posted when the form submits @param postUrl - optional address where the form should be posted . @return string - the generated html for the button form .
public static function generateButtonForm($label, $postfields, $postUrl='')
    {
        $html = '<form method="POST" action="' . $postUrl . '">' .
                    self::generateHiddenInputFields($postfields) .
                    self::generateSubmitButton($label) .
                '</form>';
        return $html;
    }
public static function generateButtonForm ( $ label , $ postfields , $ postUrl = '' ) { $ html = '<form method="POST" action="' . $ postUrl . '">' . self :: generateHiddenInputFields ( $ postfields ) . self :: generateSubmitButton ( $ label ) . '</form>' ; return $ html ; }
Generates what appears to be just a button but is actually a submittable
 form that will post itself or the specified postUrl.
Generates what appears to be just a button but is actually a submittable form that will post itself or the specified postUrl .