captcha example

To use the CAPTCHA validation, feel free to attach your favourite CAPTCHA image generator as the 'postfix' of the element. The only requirement is that you have to store the string in the $_SESSION array using the key that you're setting as 'index' in the $config array. 

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 (
  'captcha' => 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).