PHP code example of jenwachter / html-form
1. Go to this page and download the library: Download jenwachter/html-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/ */
jenwachter / html-form example snippets
// Create the form
$form = new \HtmlForm\Form();
// Add a fieldset
$fieldset = $form->addFieldset("Contact info");
// Add some form fields
$fieldset->addTextbox("name", "Your name", array("it");
// Render the form
$form->display();
// Validate the form
if (isset($_POST["submit"]) && $form->isValid()) {
// continue processing the form as you see fit
}