Like the Spartans at Thermopylae, these 300 lines of code are meant to protect your forms from malicious invaders.
$form = new form();
$form->required = array( 'form_lastname' );
$form->pattern = array( 'form_lastname' => '!^[a-zA-Z]+$!' );
$form->process( $_POST );
$data = $form->processed_data;
<input type="text" name="form_lastname" placeholder="Your Name" value="<?php $form->data( 'form_lastname' ); ?>" />
<span style="color:red"><?php $form->hint( 'form_lastname' ); ?></span>
Requires: 3.3.2 or higher
Compatible up to: 3.4.2
Last Updated: 2012-6-27
Active Installs: Less than 10
Got something to say? Need help?