Editing with Sections

Insert or edit a something to see what sections are.

Sample Code


// create form object
$forms = new pnFormTrash("people");
$forms->show("firstname", "lastname");

// first section
$forms->section("Person");
$forms->setHidden("a3country", "DE");
$forms->setNotNull("firstname"); 
$forms->setNotNull("lastname"); 
$forms->setCheck("admin");

// second section
$forms->section("More");
$forms->setType("comment", "textarea"); 
$forms->setType("dateofbirth", "date2");

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

Live Sample

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