subsection caption – PHP Database Form https://phpdatabaseform.com Generate web form from database. Simple. Fri, 26 Dec 2014 16:03:21 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 Add A Section Header https://phpdatabaseform.com/examples/add-section-header/ Mon, 07 Jul 2014 19:30:55 +0000 http://phpdatabaseform.com/?p=300 You can divid a form into multiple subsections each with different header text. Use add_group_header() for this purpose.

$dbForm = new C_DatabaseForm("SELECT * FROM Employees", "EmployeeID", "Employees");
$dbForm -> set_label("EmployeeID", "Employee ID");
$dbForm -> set_label("LastName", "Last Name");
$dbForm -> set_label("FirstName", "First Name");
$dbForm -> set_label("BirthDay", "DOB");
$dbForm -> set_hide("Extension");
$dbForm -> set_hide("hireDate");
$dbForm -> set_placeholder('Title', 'official job title');
$dbForm -> add_group_header("EmployeeID", "Basic Info");
$dbForm -> add_group_header("Email", "Contact Info");
$dbForm -> display();

Sample Output:

section_header

Live demo

]]>