<?php
/* project: HTML5 validation and features, file: html5form.php */
//Include pclib framework
require 'pclib/pclib.php';
//Create pclib application
$app = new PCApp('demo');
//Initialize form template
$form = new PCForm('tpl/html5form.tpl');
//if submitted, show values
if ($form->submitted) {
print "You submitted following values:<br>";
var_export($form->values);
return;
}
print $form;
?>
Elapsed time: 15.05 ms