How to reference Twig form values from within controller action? I have a form and a hidden action that successfully runs the controller action.  I now want to include 2 variables (form input values) and then use those values while I am in the controller action.  How do I grab the value (theemailaddress) that was in the form?

Twig template file:

&lt;form method="post" action="" accept-charset="UTF-8"&gt;

&lt;input type="hidden" name="action" value="psychEmail/publication/pubRequest"&gt;
        &lt;input type="text" name="theemailaddress" value="" size="100"&gt;

        &lt;!-- ...--&gt;

        &lt;input class="btn submit" type="submit" value="{{ 'Submit'|t }}"&gt;
    &lt;/form&gt;


function IN controller:

public function actionPubRequest()
{
    $this-&gt;requirePostRequest();

    $email = new EmailModel();
    $email-&gt;fromEmail = 'email@school.edu';
    $email-&gt;toEmail = 'myemail@gmail.com';
    $email-&gt;subject = 'Publication Request';
    $email-&gt;body    = 'Your requested publication is attached.';

    craft()-&gt;email-&gt;sendEmail($email);
}
You can use craft()-&gt;request-&gt;getPost('name') to grab any posted values from your form submission.