Example #1
0
 public function Form()
 {
     $form = new Form($this, 'Form', new FieldList(new EmailField('Email')), new FieldList(new FormAction('doSubmit')));
     $form->setFormMethod('POST');
     $form->setStrictFormMethodCheck(true);
     $form->disableSecurityToken();
     // Disable CSRF protection for easier form submission handling
     return $form;
 }