inputRadio example

Radio button examples: without default value, with a default value and a modified tabular layout.

The live form - submit it!

with a default value
with tabular layout
with a divider

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 (
  'inputRadio1' => NULL,
  'inputRadio2' => 0,
  'inputRadio3' => 0,
  'inputRadio4' => 0,

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