Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2009-06-09 04:15
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>