Posts Tagged ‘request’

To Load the request values in a form it’s as simple as this:

<?php
//form example
$form = new ADForm();
$form->add(new ADTextField('name'));
$form->add(new ADCheckBoxField('type'));
...
$form->setValues($_REQUEST);
...

echo $form->render();
?>
Advertisements