<html>
<head>
<title>ApPHP :: JS Auto Form Validator :: Content</title>
<link href="css/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<h4>Welcome to JS Auto Form Validator</h4>
<p>
The JS Auto Form Validator is an easy-to-setup form validation script which enables you to handle the whole form validation process without writing any JavaScript code. This script allows you to specify certain form elements as "required" or "non-required" and also what specific type they have: text, password, numeric, zip code etc.
</p>
<p>
Select an appropriate link from the left menu to start.
</p>
<p>
<b>Step 1</b>: To start using of JS Auto Form Validator copy & paste these lines between <head> and </head> tags of your HTML page.<br />
NOTE: you have to define a valid path to all included files.
</p>
<pre>
<SCRIPT type='text/javascript' src='jsafv/chars/jsafv_messages.js'></SCRIPT>
<SCRIPT type='text/javascript' src='jsafv/chars/diactric_chars_utf8.js'></SCRIPT>
<SCRIPT type='text/javascript' src='jsafv/form.scripts.js'></SCRIPT>
<SCRIPT type='text/javascript'>
var jsFormValidator = new FormValidator(); // create new instance of object
</SCRIPT>
</pre>
<p>
<b>Step 2</b>: Create HTML form for validation.
</p>
<pre>
<FORM name="frmTest" action="result.html" method="get">
...
... your fields here
....
<INPUT onclick="return onSubmitCheck(document.forms['frmTest'])" type="submit" value="Submit" name="butTest" />
</FORM>
</pre>
<br />
Usage of Prefixes
<pre>
r - required, s - simple
n - numeric, i - integer, f - float,
a - alphabetic, t - text, e - email,
p - password, l - login, y - any (generally used for non-english symbols and text),
z - zipcode, v - verified, c - checked (for checkboxes),
u - url
for numbers: s - signed, u - unsigned, p - positive, n - negative
for strings: u - upper, l - lower, n - normal, y - any
</pre>
</body>
</html> |