roundcubemail/program/include/rcmail_output_html.php
public function request_form($attrib, $content = '')
    {
        $hidden = new html_hiddenfield();
        if ($attrib['task']) {
            $hidden->add(array('name' => '_task', 'value' => $attrib['task']));
        }
        if ($attrib['action']) {
            $hidden->add(array('name' => '_action', 'value' => $attrib['action']));
        }

        // we already have a <form> tag
        if ($attrib['form']) {
            if ($this->framed || $this->env['framed']) {
                $hidden->add(array('name' => '_framed', 'value' => '1'));
            }

            return $hidden->show() . $content;
        }

        unset($attrib['task'], $attrib['request']);
        $attrib['action'] = './';

        return $this->form_tag($attrib, $hidden->show() . $content);
    }
public function request_form($attrib, $content = '')
    {
        $hidden = new html_hiddenfield();
        if ($attrib['task']) {
            $hidden->add(array('name' => '_task', 'value' => $attrib['task']));
        }
        if ($attrib['action']) {
            $hidden->add(array('name' => '_action', 'value' => $attrib['action']));
        }

        // we already have a <form> tag
        if ($attrib['form']) {
            if ($this->framed || $this->env['framed']) {
                $hidden->add(array('name' => '_framed', 'value' => '1'));
            }

            return $hidden->show() . $content;
        }

        unset($attrib['task'], $attrib['request']);
        $attrib['action'] = './';

        return $this->form_tag($attrib, $hidden->show() . $content);
    }
public function request_form ( $ attrib , $ content = '' ) { $ hidden = new html_hiddenfield ( ) ; if ( $ attrib [ 'task' ] ) { $ hidden -> add ( array ( 'name' => '_task' , 'value' => $ attrib [ 'task' ] ) ) ; } if ( $ attrib [ 'action' ] ) { $ hidden -> add ( array ( 'name' => '_action' , 'value' => $ attrib [ 'action' ] ) ) ; } // we already have a <form> tag if ( $ attrib [ 'form' ] ) { if ( $ this -> framed || $ this -> env [ 'framed' ] ) { $ hidden -> add ( array ( 'name' => '_framed' , 'value' => '1' ) ) ; } return $ hidden -> show ( ) . $ content ; } unset ( $ attrib [ 'task' ] , $ attrib [ 'request' ] ) ; $ attrib [ 'action' ] = './' ; return $ this -> form_tag ( $ attrib , $ hidden -> show ( ) . $ content ) ; }
Build a form tag with a unique request token

@param array  $attrib  Named tag parameters including 'action' and 'task' values
which will be put into hidden fields
@param string $content Form content

@return string HTML code for the form
Build a form tag with a unique request token