PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Chetan Mendhe   class.autoform.php   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: class.autoform.php
Compose and display HTML forms
Author: By
Last change:
Date: 15 years ago
Size: 490 bytes
 

Contents

Class file image Download
<?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>