Input field types

These are the types that you can use for the form when editing datasets. Note that Some of them have their own function and others, such as htmleditor, require the libraries for that specific feature to be downloaded and installed with your webapplication.

  • text
  • float
  • datetime
  • datetime2
  • date2
  • fixed
  • file
  • hidden -> setHidden()
  • password
  • selectdb
  • selectarray -> setValues()
  • radioarray
  • booleancheck -> setCheck()
  • foreignkey -> setForeignKey()
  • foreignset -> setForeignSet()
  • textarea
  • htmlarea (needs lib for htmlarea)
  • innova (needs lib for innovaeditor)
  • fckeditor3 (needs lib for fckeditor)
Sample Code


// create form object
$forms = new pnFormTrash("people");

// show and list attributes
$forms->setHidden("a3country", "DE"); 
$forms->setNotNull("firstname"); 
$forms->setNotNull("lastname"); 
$forms->setCheck("admin");
$forms->setType("comment", "textarea"); 
$forms->setType("dateofbirth", "date2");

$forms->show("firstname", "lastname");

// create html
$forms->doit(); 

Live Sample

  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.