PHP Classes

File: example_2_notbl.php

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


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<title>Example 2 :: without 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 no table</h1></div>
<br />
<br />
include ("inc/ff_form.class.php");
include (
$fn = new ff_form;
$fn->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 $fn->ff_head('form', '$SELF_PHP', 'get');
// heading for select groups
echo $fn->ff_snt ('Beverages');
//a select field
echo $fn->ffn_select('Drinks','ff_form' ,'drinks', 'drinks');
//a radio button with field label left
echo $fn->ffn_lr('Fruit','ff_form','fruit', 'mango', 'fruit');
//a radio button field with label right
echo $fn->ffn_rl('Vegetables','ff_form','vegetables', 'onion', 'vegetables');
//a checkbox field with label left
echo $fn->ffn_lc('Names','ff_form','names', 'Gina', 'Juan', '', '', '','names');
//a checkbox field with label right
echo $fn->ffn_cl('Countries','ff_form','countries', 'Germany', 'England', 'Spain', '', '', 'countries');

// submit button
echo $fn->ff_btn_s ('Send');
// Back button
echo $fn->ff_btn_b ('Back');
// reset button
echo $fn->ff_btn_r ('Reset');
//closing tag form
echo $fn->ff_foot();


For more information send a message to info at phpclasses dot org.