Advertisement
Guest User

Untitled

a guest
Jan 14th, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. $name = new TextField('FromName', 'Il tuo nome');
  2. $from = new TextField('FromEmail', 'Il tuo indirizzo email');
  3. //$to = new DropDownField('ToEmail', 'Chi desideri contattare?', $map);
  4. $to = new GroupedDropdownField(
  5.         $name = "ToEmail",
  6.         $title = _t("Contact", "Chi desideri contattare?"),
  7.         $groupedDropDownEmail,
  8.         $ToEmailVal
  9. );
  10. $msg = new TextAreaField('Message', 'La tua richiesta');
  11. $fields = new FieldList($name, $from, $to, $msg);
  12. $actions = new FieldList(
  13.         new FormAction('doSendContactForm', 'Invia richiesta')
  14. );
  15. $required = new RequiredFields(
  16.         array('FromName', 'FromEmail', 'Message')
  17. );
  18.  
  19. $form = new Form($this, 'ContactForm', $fields, $actions, $required);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement