This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.



Less is more

Use this simple plugin to validate your forms. Use regular expressions to match user input against. No need to install huge plugins to validate your forms. This plugin is there for validation, to build the actual form, you still have to do the coding.


  • Obligatory fields
  • Patterns matching
  • Support for dynamic forms
  • Lightweight, adaptable code

I do not claim this code to be complete yet, as it is an alpha version. Before using it in your live site, please do some testing.

Arbitrary section

Please leave feedback, bug reports or comments at


How to install

  1. Upload 300form.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Get a ‘form’ class instance. See the files ‘page-300form.php’ and ‘template.php’ for example usage.


  1. Copy the ‘page-300form.php’ to your theme folder
  2. Create a page in the editor using ‘300form-example’ as a template
  3. Access the example form in the frontend

How to use (example):

$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="data( ‘form_lastname’ ); ?>” />
hint( ‘form_lastname’ ); ?>


  • $required | array containing names of required form fields
  • $pattern | array containing key/value pairs of field names and their corresponding regular expressions
  • $process( $data ) | function that starts the validation process. Must be passed REQUEST data as first parameter
  • $processed_data | If all validation checks are passed, this var contains the validated REQUEST data
  • $data( $handler ) | wrapper for get_data( $handler ). Outputs the value entered in the $handler form field
  • $hint( $handler ) | wrapper for get_hint( $handler ). Outputs the form field’s hint

Contributors & Developers

“300form” is open source software. The following people have contributed to this plugin.


Translate “300form” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


– First version

– Added support for dynamic forms