1. Go to this page and download the library: Download hakimch/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/ */
hakimch / form example snippets
$form = HakimCh\Form\Form::init();
$form->setup(
$datas, // Submited datas
$token, // If you want add csrf token (d
'class' => 'formClass', // adding a class
'enctype' => 'multipart/form-data' // If you want use it for upload some files
])->open();
// you can add fields here
echo $form->close(); // Closing form
// Create label(name, for, span class="->label('firstName', true);
// A normal text field with a name
echo $form->text('firstName');
// Add an Advanced text field with options
echo $form->addAttr([
'id' => 'secondName',
'value' => 'Chmimo',
'class' => '