PHP Classes

Easy Form: Output very simple HTML forms

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 327 All time: 7,157 This week: 177Up
Version License PHP version Categories
easy-form 1.0GNU General Publi...5.0HTML, PHP 5
Description 

Author

This is a very simple class that can output HTML forms.

The main class can output simple HTML form tags with optional form tag parameters.

A separate class can also output for form inputs with optional attributes and text or tags to display before or after the input element.

Picture of maher ben abdesslam
  Performance   Level  
Name: maher ben abdesslam <contact>
Classes: 2 packages by
Country: Tunisia Tunisia
Age: ???
All time rank: 267410 in Tunisia Tunisia
Week rank: 364 Up3 in Tunisia Tunisia Up

Example

<?php
   
require "Elements.php";

   
$f=new Form("method='get' action='index.php'");
   
$e=new Elements();
   
$e->before("<label>");
   
$e->element("checkbox","value='product'");
   
$e->after("one </label>");
   
$e->before("name :");
   
$e->element("text","placeholder='name'");
   
$e->before("<br>");
   
$e->element("submit","value='envoyer'");
   
$f->closeForm();


  Files folder image Files  
File Role Description
Plain text file Elements.php Class elements class
Accessible without login Plain text file example.php Example this is tiny exaample
Plain text file Form.php Class form class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:327
This week:0
All time:7,157
This week:177Up