PHP code example of nette / forms
1. Go to this page and download the library: Download nette/forms 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/ */
nette / forms example snippets
use Nette\Forms\Form;
$form = new Form;
$form->addText('name', 'Name:');
$form->addPassword('password', 'Password:');
$form->addSubmit('send', 'Register');
echo $form; // renders the form
$form->addText('name', 'Name:')
->setRequired('Please fill your name.');