PHP code example of arrack / form-lib

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

    

arrack / form-lib example snippets



// input text box
echo FormLib::text('name', 'input your name');
echo FormLib::text('name', 'input your name', ['readonly' => true, 'size' => 5]);

// select
$options = [
    'A1' => 'AAA',
    'B1' => 'BBB'
];
echo FormLib::select('category', 'B1', $options);