Source/SimpleLiveUpdate.php
protected function formSubmitElement($formName = '', $submitElement = 'button', $submitElementText = '')
    {
        switch ($submitElement) {
            case 'link':
                $element = "\n<a href='javascript:document.getElementById(\"" . $formName ."\").submit()'>" . addslashes($submitElementText) . "</a>";
                break;
            case 'button':
                $element = "\n<button type='submit'>" . addslashes($submitElementText) . "</button>";
                break;
            case 'auto':
                $element = "\n<button type='submit'>" . addslashes($submitElementText) . "</button>";
                $element .= "\n<script language=\"javascript\" type=\"text/javascript\">document.getElementById(\"" . $formName . "\").submit();</script>";
                break;
            default :
                $element = "\n<button type='submit'>" . addslashes($submitElementText) . "</button>";
                break;
        }
        return $element;
    }
protected function formSubmitElement($formName = '', $submitElement = 'button', $submitElementText = '')
    {
        switch ($submitElement) {
            case 'link':
                $element = "\n<a href='javascript:document.getElementById(\"" . $formName ."\").submit()'>" . addslashes($submitElementText) . "</a>";
                break;
            case 'button':
                $element = "\n<button type='submit'>" . addslashes($submitElementText) . "</button>";
                break;
            case 'auto':
                $element = "\n<button type='submit'>" . addslashes($submitElementText) . "</button>";
                $element .= "\n<script language=\"javascript\" type=\"text/javascript\">document.getElementById(\"" . $formName . "\").submit();</script>";
                break;
            default :
                $element = "\n<button type='submit'>" . addslashes($submitElementText) . "</button>";
                break;
        }
        return $element;
    }
protected function formSubmitElement ( $ formName = '' , $ submitElement = 'button' , $ submitElementText = '' ) { switch ( $ submitElement ) { case 'link' : $ element = "\n<a href='javascript:document.getElementById(\"" . $ formName . "\").submit()'>" . addslashes ( $ submitElementText ) . "</a>" ; break ; case 'button' : $ element = "\n<button type='submit'>" . addslashes ( $ submitElementText ) . "</button>" ; break ; case 'auto' : $ element = "\n<button type='submit'>" . addslashes ( $ submitElementText ) . "</button>" ; $ element .= "\n<script language=\"javascript\" type=\"text/javascript\">document.getElementById(\"" . $ formName . "\").submit();</script>" ; break ; default : $ element = "\n<button type='submit'>" . addslashes ( $ submitElementText ) . "</button>" ; break ; } return $ element ; }
Generates HTML submit element

@param string $formName          The ID parameter of the form
@param string $submitElement     The type of the submit element ('button' or 'link')
@param string $submitElementText The lebel for the submit element

@return string HTML submit
Generates HTML submit element