Dynamic inputs and Google Maps marker in a form example
Looking for some advanced features?
- dynamic elements - the element options are automatically populated from a database query
- built-in tree layout supported for selects, multiple selects and dynamic checkbox elements!
- validate the multi-enabled dynamic checkbox element against minimum or maximum number of required checkboxes!
- Google Maps - a drag and drop map marker element with built-in address search autocompletion!
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 ( 'categoryid' => NULL, 'categoryids_withselect' => NULL, 'categoryids_withcheckbox' => array ( ), 'mapMarker' => 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 formslearn more