PHP Classes

File: example_1_tbl.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Charles Siegrist  >  FF Form  >  example_1_tbl.php  >  Download  
File: example_1_tbl.php
Role: Example script
Content type: text/plain
Description: example file 1
Class: FF Form
Generate Web forms filling with data from MySQL
Author: By
Last change:
Date: 11 years ago
Size: 2,051 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<title>Example 1 :: with table</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css"/>


<body bgcolor="#D5E2E6">
// FF_Form
// email:
// If you use this script, please put a link back to
<div style="width:99%; background-color:#86afbc; text-align:center; color:#000080; "><h1>FF_FORM - Example with table</h1></div>
<br />
<br />
include ("inc/ff_form.class.php");
include (
$ff = new ff_form;
$ff->ff_form ('heading_radio', 'label_lr', 'label_select', 'heading_select', 'data_select', '20' , 'label_rl', 'heading_check', 'label_lc', 'label_cl', 'tbl', "hsn", 'lrn','rln', 'lsn', 'lcn', 'cln');
//Set the form header
echo $ff->ff_head('form', '$SELF_PHP', 'get');
//set the table header
echo $ff->ff_tbl_head('form_1');
// heading for select groups
echo $ff->ff_select_heading ('Drinks');
//a select field
echo $ff->fft_select('Drinks','ff_form' ,'drinks', 'drinks');
//a radio button with field label left
echo $ff->fft_lr('Fruit','ff_form','fruit', 'mango', 'fruit');
//a radio button field with label right
echo $ff->fft_rl('Vegetables','ff_form','vegetables', 'onion', 'vegetables');
//a checkbox field with label left
echo $ff->fft_lc('Names','ff_form','names', 'Gina', 'Juan', '', '', '','names');
//a checkbox field with label right
echo $ff->fft_cl('Countries','ff_form','countries', 'Germany', 'England', 'Spain', '', '', 'countries');
// submit button
echo $ff->ff_btn_s ('Send');
// Back button
echo $ff->ff_btn_b ('Back');
// reset button
echo $ff->ff_btn_r ('Reset')."</td></tr>";
//closing tag table
echo $ff->ff_tbl_foot();
//closing tag form
echo $ff->ff_foot();