text field for displaying only content in a form

text

A simple display-only element.

Typical usage is:

  • displaying text information in between for elements
  • displaying non-changeable input data (like a login name) for modify forms.

Please note, that the value of this element is not returned by $clonefish->getElementValues().


<?php
$config 
= Array(

  
'id' => Array(
    
'type'           => 'text',
    
'displayname'    => 'This is an informational field',
    
'value'          => 'Some string here',

    
'rowlayout'      => '...%element% %prefix% %postfix% etc...',
    
'prefix'         => 'string to display before element',
    
'postfix'        => 'string to display after element',
    
'display'        => 0,
  )

);
?>


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 forms
learn more
Bookmark and Share