<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: FormPersistence ::</title>
<style>
#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;}
.float-left{float:left;}
.float-right{float:right;}
.use1300{width:1300px;}
.use1200{width:1200px;}
.use1000{width:1000px;}
.use400{width:400px;}
.use100{width:100px;}
.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-border{border:0px;}
.no-padding{padding:0px 0px 0px 0px;}
.red{color:red}
.black_bg{background:#000; color:white;}
</style>
</head>
<body>
<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>
<div class="box use1000 center1000" style="margin-top:40px; margin-bottom:40px; background:#FFF;">
<b>About <i>Form Persistence</i>:</b><br>
Form Persistence help to user do not loose your data in a form when are missing data.<br><br>
<b>Free use:</b><br>
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>
<b>How to use:</b><br><br>
<b>FieldValidate([parameter1, parameter2]):</b><br>
This method checks if the field is null(empty), if you create a session saving data<br>
Parameter1: field received from form.<br>
Parameter2: field name in your form.<br>
<br>
<div class="box use400 black_bg no-border">
$Validate->FieldValidate($name, 'name');
</div>
<br><br>
<b>EndValidate([parameter1]):</b><br>
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'));
</div>
<br><br>
</div>
</div>
</body>
</html> |