Location: PHPKode > scripts > PHP GUI API > examples/formbuilder.php
<?php

$form = new FormBuilder("login", "", "post");
$form->buildComment("username: ", FALSE)
     ->buildTextField("username")
     ->buildComment("password: ", FALSE)
     ->buildPasswordField("password", "pass", "", TRUE)
     ->buildButton("Submit", "submit", "submit");
echo "<u>Simple Login Form:</u> <br>";
echo $form->render();
?>
Return current item: PHP GUI API