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: 20 years ago
Size: 1,919 bytes
 

Contents

Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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"/>

</head>

<body bgcolor="#D5E2E6">
<!--
// FF_Form
// http://www.hotreca.de/
// email: info@hotreca.de
// If you use this script, please put a link back to http://www.hotreca.de/
*/-->
<div style="width:99%; background-color:#86afbc; text-align:center; color:#000080; "><h1>FF_FORM - Example with no table</h1></div>
<br />
<br />
<?php
include ("inc/ff_form.class.php");
include (
"inc/connect_mysql.php");
$fn = new ff_form;
echo
$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();
?>

</body>
</html>