Location: PHPKode > scripts > class.autoform.php > class-autoform-php/example.php
<?php

/**
 * @author chetan
 * @copyright 2009
 */

include("class.niceform.php");

$form=new niceform("post","niceform.php");
$form->start("Contact Us");
$form->add_field("Name:","text","name");
$form->add_field("Message:","text","message","message");
$form->add_field(null,"submit","submit",null,array("value"=>"Contact"));
$form->close();
$content=$form->getHTML();

?>
<html>
<head>
<?php $form->head();?>
</head>
<body>
<?php echo $content; ?>
</body>
</html>
Return current item: class.autoform.php