mbrioski / jetForm

Simple framework application to create dinamic and validated form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jetForm

Simple framework application to create dinamic and validated form in 2 seconds. In only few click you obtain a form in the sub directory "form" that make and insert into your database with all field validated. Very useful for example, for newsletter subscrition form

Installation

Unzip the package into your root directory. Create two directory and set apache user like owner: "logs" and "data"
Set apache user like owner also to the directory form and all files inside, for example if you use linux debian: chown -Rf www-data:www-data form

CONFIGURATION

Open conf/db.php and set database connection parameters. Open conf/vars.php and set form creation variables:

<?php
    $timezone = "Europe/Dublin";
    //field form, separeted by ","
    $db_fields = "name,surname,email,address"; 
    //field to validate
    //automatic validate for: 'name'||'surname'||'sex'||'job'||'phone'|| 'address' || 'city' || 'cap' || 'nation' || age || email || privacy1 || privacy2
    $mandatory_fields = "email"; 
    
    $logName = "projectname_form_subscribe"; //name for file log
?>

Usage

Just time in your browser the url for form creation: http://www.yoursite.com/creation You have your database (you can find a dump into sub directory data), your form and all the action for subscribtion. The only things you have to do is customize your confirm.html page inside form directory and personalize with some color your new form :)

About

Simple framework application to create dinamic and validated form


Languages

Language:JavaScript 76.8%Language:PHP 18.1%Language:CSS 5.1%