PHP Classes

File: Documentation.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Fernando Alls  >  Form Persistence  >  Documentation.php  >  Download  
File: Documentation.php
Role: Documentation
Content type: text/plain
Description: how to use formPersistence
Class: Form Persistence
Save submitted form values in session variables
Author: By
Last change:
Date: 3 years ago
Size: 3,051 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: FormPersistence ::</title>
#page-1300{position:relative; width:1300px; height:auto; left:50%; margin-left:-650px; margin-top:20px; border:1px solid #ccc; margin-bottom:40px;}
#page-1200{position:relative; width:1200px; height:580px; left:50%; margin-left:-600px; margin-top:20px; border:1px solid #ccc; margin-bottom:40px;}
#page-1000{position:relative; width:1000px; height:580px; left:50%; margin-left:-500px; margin-top:20px; border:1px solid #ccc; margin-bottom:40px;}
#page-800{ position:relative; width:1000px; height:580px; left:50%; margin-left:-500px; margin-top:20px; border:1px solid #ccc; margin-bottom:40px;}
.box{width:auto;padding-top:30px; border:1px solid #666;}
.center1200{position:relative; left:50%; margin-left:-600px; padding:10px 10px 10px 10px;}
.center1000{position:relative; left:50%; margin-left:-500px; padding:10px 10px 10px 10px;}
.center400{position:relative; left:50%; margin-left:-200px; padding:10px 10px 10px 10px;}
.no-padding{padding:0px 0px 0px 0px;}
.black_bg{background:#000; color:white;}

<div id="page-1200" style="height:auto;">
  <div class="box use1200" style="background-color:#666; color:#FFF; padding:10px 0px 10px 0px;">
   <center> <h1> Form Persistence </h1> </center>
   <div class="box use1000 center1000" style="margin-top:40px; margin-bottom:40px; background:#FFF;">
    &nbsp;&nbsp;<b>About <i>Form Persistence</i>:</b><br>
    &nbsp;&nbsp;Form Persistence help to user do not loose your data in a form when are missing data.<br><br>
    &nbsp;&nbsp;<b>Free use:</b><br>
    &nbsp;&nbsp;It is a free module, then you can easily adapt it to your project, improving it, just ask that you keep the rights to develop.<br><br>    

    &nbsp;&nbsp;<b>How to use:</b><br><br>
    &nbsp;&nbsp;<b>FieldValidate([parameter1, parameter2]):</b><br>
    &nbsp;&nbsp;This method checks if the field is null(empty), if you create a session saving data<br>
	&nbsp;&nbsp;Parameter1: field received from form.<br>
	&nbsp;&nbsp;Parameter2: field name in your form.<br>
    <div class="box use400 black_bg no-border">
     $Validate->FieldValidate($name, 'name');

    &nbsp;&nbsp; This method receives all fields from form, fields name.<br><br>
    <div class="box use400 black_bg no-border">

     $Validate->EndValidate($data = array ('name', 'email', 'city', 'state'));