select example

Static selects are easy to understand and to create - and it's even more fun with clonefish! It handles even multiple selects like a breeze - and if it's not enough, just have a look at selectDynamic :)

The live form - submit it!

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 (
  'select1' => '0',
  'select2' => 
  array (
    0 => '0',
    1 => 3,
  ),
)

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).