PHP code example of emildev / simpleform2b

1. Go to this page and download the library: Download emildev/simpleform2b 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/ */

    

emildev / simpleform2b example snippets


\emildev\SimpleForm2B\SimpleForm2B();

$auth = new \emildev\SimpleForm2B\SimpleForm2B();
 
$auth->setForm('post', $this->url->create('register/check'), 'registerForm');

$auth->setInput('text', 'username', NULL, 'username', 'Insert Username', NULL);

$auth->setTextArea('textarea', NULL, NULL, 'Write info', NULL);

$auth->setSubmit('submitThis', 'Send');

$myNewForm = $auth->saveForm();

$this->views->add('simpleform2b/simpleform2b', [
				'form' => $myNewForm
				]);