input type=text, input type=password, input type=hidden, input fields
inputText, inputPassword, inputHidden, textarea
These controls are largely alike, thus all of them have the same configuration.
However, there are exceptions for the inputHidden element: as this element type is not visible, it does not support displayname
, rowlayout
, prefix
and postfix
.
<?php
$config = Array(
'id' => Array(
'type' => 'inputText|inputPassword|inputHidden|textarea',
'displayname' => 'This is an input field',
'value' => 'default value here',
'html' => 'class="inputfieldstyle"'
'help' => 'validation failed for this element',
'rowlayout' => '...%element% %prefix% %postfix% etc...',
'prefix' => 'string to display before element',
'postfix' => 'string to display after element',
'readonly' => 1 | 0,
'display' => 1 | 0,
'htmlid' => 'name1',
)
);
?>
Live examples:
Validators to use together with this element:
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