number example

Using the number validation you can check if the user entered an integer or a real number as required. The value can be range checked using the minimum and/or the maximum setting.

The live form - submit it!

you may also leave this field empty!

Data dump

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 (
  'number' => NULL,
  'sci' => '13.02E13',
  'intmin5' => 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).