required()->validate($required); } $validator->email()->validate('user-email'); // recaptcha validation $validator->recaptcha('6LcuoSEUAAAAACyMV5npMZc1FlYYaOR2007oV_BY', 'Recaptcha Error')->validate('g-recaptcha-response'); // check for errors if ($validator->hasErrors()) { $_SESSION['errors']['contact-form-2'] = $validator->getAllErrors(); } else { $from_email = addslashes($_POST['user-email']); $adress = 'info@oostdorperhoeve.nl'; $subject = 'Bericht via website'; $filter_values = 'contact-form-2, captcha, submit-btn, token, captchaHash'; $sent_message = Form::sendMail($from_email, $adress, $subject, $filter_values); Form::clear('contact-form-2'); } } /* ================================================== The Form ================================================== */ $form = new Form('contact-form-2', 'vertical', 'novalidate'); $form->addInput('text', 'user-name', '', 'Naam : ', 'required'); $form->addInput('email', 'user-email', '', 'E-mailadres : ', 'required'); $form->addInput('text', 'user-phone', '', 'Telefoon : ', 'data-fv-phone, data-fv-phone-country=NL'); $form->addTextarea('message', '', 'Bericht : ', 'cols=30, rows=4, required'); $form->addRecaptcha('6LcuoSEUAAAAACyMV5npMZc1FlYYaOR2007oV_BY'); $form->addBtn('submit', 'submit-btn', 1, 'Verzenden', 'class=btn btn-success'); $form->endFieldset(); $form->addPlugin('icheck', 'input', 'default', array('%theme%' => 'square-custom', '%color%' => 'green')); // jQuery validation $form->addPlugin('formvalidation', '#contact-form-2'); ?> Landgoed de Oostdorperhoeve | Contact

Vergaderen met lunch - schilderworkshops - themafeesten - walking dinner - bruiloften - familiefeesten - reunies - recepties

Vragen? Vul ons contactformulier in.

Contactformulier

render(); ?>
printIncludes('js'); $form->printJsCode(); ?>