A full featured example example

This form is a short introduction to Clonefish. These fields are created and validated using a simple configuration array

live form - submit it!

radiobutton group
inputfile.png

data

Below are the dumps of some PHP variables - submit the form to see the changes!

Contents of the $_POST array:
$_POST = array (
)

Results of a $clonefish->getElementValues() call:
array (
  'login' => NULL,
  'password' => NULL,
  'passwordverify' => NULL,
  'email' => NULL,
  'writerid' => NULL,
  'inputRadio' => NULL,
  'fulldateiso' => '2010-13-32',
  'intmin5' => NULL,
  'inputfile' => NULL,
  'selectfile' => NULL,
)

There are cases when the above arrays are different. This is not a bug, but a feature: clonefish was written to help with everyday form hassles (like avoiding the missing value of an unchecked checkbox or compiling the whole date string from date selector fields).

form validation for developers!

clonefish is a proven, mature form generator class that helps PHP developers to create, validate and process secure, flexible and easy-to-maintain forms
learn more
Bookmark and Share