src/HtmlGenerator.php
/**
     * Generates a submit button for a form.
     * 
     * @param string label   - The text that will be displayed over the button
     * @param bool offscreen - render the submit button offscreen so that it 
     *                         does not appear within the form, but allows the 
     *                         form to be submitted by hitting enter. 
     *                         Setting display:none would work in FF but not 
     *                         chrome
     * 
     * @return string - The html code for the button
     */
Generates a submit button for a form.

@param string label   - The text that will be displayed over the button
@param bool offscreen - render the submit button offscreen so that it
does not appear within the form, but allows the
form to be submitted by hitting enter.
Setting display:none would work in FF but not
chrome

@return string - The html code for the button
Generates a submit button for a form . @param string label - The text that will be displayed over the button @param bool offscreen - render the submit button offscreen so that it does not appear within the form but allows the form to be submitted by hitting enter . Setting display : none would work in FF but not chrome @return string - The html code for the button
public static function generateSubmitButton($label="Submit", 
                                                $offscreen=false)
    {
        $styleAttribute = '';
        if ($offscreen)
        {
            $styleAttribute = ' style="position: absolute; left: -9999px" ';
        }
        $html = '<input ' .
                    'type="submit" ' .
                    'value="' . $label . '" ' .
                     $styleAttribute . 
                '/>'; 
        return $html;
    }
public static function generateSubmitButton ( $ label = " Submit " , $ offscreen = false ) { $ styleAttribute = '' ; if ( $ offscreen ) { $ styleAttribute = ' style="position: absolute; left: -9999px" ' ; } $ html = '<input ' . 'type="submit" ' . 'value="' . $ label . '" ' . $ styleAttribute . '/>' ; return $ html ; }
Generates a submit button for a form.
Generates a submit button for a form .