FF_Form


Index

  1. What is FF_Form and what does it do?
  2. How is FF_Form licenced ?
  3. How do I install FF_Form ?
  4. How do I use FF_Form ? - Configuration
  5. How do I use FF_Form - using tables ?
  6. How do I use FF_Form - not using tables ?
  7. Further Comments to formatting FF_Form

  1. What is FF_Form and what does it do?


    There are many form generators around, this is not one. This little proggie takes the pain out of form fillers. It allows you to create dynamic dropdowns, checkboxes and radio buttons. You can create the whole form or just insert a button or dropdown in your form. FF_Form takes values from a mysql db and inserts these into a checkbox, form or dropdown. This is very handy for searchforms, requests and many other forms.

    [ index ]


  2. How is FF_Form licenced ?

    This would probably equal to a GNU Lesser General Public License ( http://www.opensource.org/licenses/lgpl-license.php )in other words this costs nothing, you are free to use, change , abuse this code as long as you maintain a copyright notice in the code. If you use or change the code, it would be nice if you sent me the changed code and/or the URL of where you use it. All warranties are excluded.

    [ index ]


  3. How do I install FF_Form ?

    To install FF_Form all you need to do is to upload the:
    - ff_form.class.php, to your inc directory chmod it.
    - connect_mysql.php, to your inc directory ( make sure to configure before uploading)
    - style.css to the location where you keep your .css - ff_form.sql to your MySql database

    [ index ]


  4. How do I use FF_Form ? - Configuration

    - You need to configure your MySql connection data in the file connect_mysql.php in the inc folder.
    - The second thing to configure is to include the following files on the page your form will be displayed on: connect_mysql.php, ff_form.class.php and style.css, like this:
    <?php
    include ("path_to_your_inc_folder/ff_form.class.php");
    include ("path_to_your_inc_folder/connect_mysql.php");
    ?>

    and the stylesheet in the head section of your page like this
    <link rel="stylesheet" type="text/css" href="style.css"/>
    - Next initialize the form like this $ff = new ff_form; (ff can be a combination of your choice but should be at least 2 letters and not more than 5 the combination must be unique for each form) - Now set the call to the first function. Which will mainly set css classes and as default uses preset names
    the function call looks like this with the preset default values:
    echo $ff->ff_form
    (
    'heading_radio', -- This is the group header for radio buttons with a table
    'label_lr', -- label for the radio button where the label is left in a table
    'label_select', -- label for the select field in a table
    'heading_select', -- heading for a group of select fields in a table
    'data_select', -- the actual dropdown field in a table or without table
    20, -- limit the result in a selectbox, radio button group or check box
    'label_rl', -- label for the radio button where the label is right in a table
    'heading_check', -- heading for checkbox groups in table
    'label_lc', -- label for checkboxes where label left in table
    'label_cl', -- label for checkboxes where label right in table
    'tbl', -- table class name
    'hsn', -- Heading for select groups no table
    'lrn', -- radio button label left no table
    'rln', -- radio button label right no table
    'lsn', -- label select box no table
    'lcn', -- checkbox label left no table
    'cln' -- checkbox label right no table
    );

    [ index ]


  5. How do I use FF_Form ? - using tables

    Here I will try to explain how to set the function calls so that you get the results you want, using tables.

  6. How do I use FF_Form - not using tables ?

    Here I will try to explain how to set the function calls so that you get the results you want.

    [ index ]


  7. Further comments regarding the formatting of FF_Form

    Please note that:

    [ index ]