Send data from a form in a template back to controller

Jarvis

Member
In my controller i have two functions actionIndex() and my 'action' area - actionSubmit().

If my form is simply:

<form>
Text area 1 <input type="text" name="area1">
Text area 2 <input type="text" name="area2">
<input type="submit">
</form>

How can I send the two text area strings back to the controller when a user presses 'submit'?

I've read about:

$text = $this->_input->filterSingle('area1', XenForo_Input::STRING);

But I'm not sure how to implement it or even if this is what I'm looking for.
 
Back
Top Bottom