PClib demo site

<?php
/* project: Basic form with javascript validation, file: jsform.php */

//Include pclib framework
require 'pclib/pclib.php';

//Create pclib application
$app = new PCApp('demo');

//Initialize form template
$form = new PCForm('tpl/jsform.tpl');

//if submitted, show values
if ($form->submitted) {
  print 
"You submitted following values:<br>";
  
var_export($form->values);
  return;
}

print 
$form;

?>

Elapsed time: 17.84 ms