1. Go to this page and download the library: Download mvccore/ext-form library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// ... form initialization again into var: $form
// process all configured validators by: $form->Submit();
list($result, $data, $errors) = $form->Submit();
// if data has been submitted successfuly,
// store user email somewhere in database:
if ($result == \MvcCore\Ext\Form::RESULT_SUCCESS) {
// store user email somewhere by any custom model class (User):
(new User())->SetEmail($data['mail'])->Save();
// clear form session space to not display filled
// data by current user to another users
$form->ClearSession();
}
// redirect user to configured success
// or error url (by internal $form->Result property):
$form->SubmittedRedirect();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.