PHP Classes

Easy Form: Output very simple HTML forms

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 328 All time: 7,162 This week: 455Up
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: 268110 in Tunisia Tunisia
Week rank: 192 Up1 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 (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:328
This week:0
All time:7,162
This week:455Up