Here is a basic example form with one required text field and one submit button, which submits to a custom function:
class Page_Controller extends ContentController {
private static $allowed_actions = array(
'ExampleForm'
);
public function ExampleForm() {
$fiel...