Implementing
access control
Click
here to see how we do it!
Implement The Form Validator into a web form
adds only a few lines of html code. There are a
few things you need to understand about web browser
scripting to be sure you do not have troubles implementing.
First of all, what if a persons
web browser has scripting turned off? Yikes! This
is a huge problem. Mostly for that person.
But this needs to be a primary concideration even
for the simplest of web sites. And this is where
we contend there is no such thing as a simple web
site. If a person has scipting turned off you need
to consider this in your page design.
The Form Validator has been installed
into this form by adding the html lines colored
in red and blue.
Please give special attention to adding the "onSubmit"
method inside your form tag. The items
in blue are parameters
(instructions) passed to The Form Validator which
indicate your registered domain name (r=), the form
element your are using for access control login
(ac=) and the form element name that you're are
using to capture the email address (e=). You do
not have to use email addresses as login id, but
that is most common these days and the Form Validator
will check both.
| <script
language="JavaScript" type="text/JavaScript">
function myvalidate(frm){if (validate(frm)){
frontdoor.action = "success.html";return
true;}
return
false; }
</script>
<script
language="JavaScript"
src="https://ssl.4i4.net/validator/?r=formvalidator.net&ac=email&ap=passwd&e=email&speak=y">
</script>
<form name="frontdoor"
method="post"
action="http://www.formvalidator.net/security_alert"
onSubmit="return
myvalidate(this)" >
<input name="address_email"
type="text">
<input name="passwd" type="text"
value="bananas">
</form>
|
You can cut & paste the above
form into your web site and experience the web service.
The Form Validator is controlled by
the url parameters passed to it on the <script>
line.
Note: The url for The Form Validator
must start exactly like
this: https://ssl.4i4.net/validator/?
Note! Javascript in browsers is case sensitive!
Everything is case sensitive!
We highly, highly suggest you simply use lower
case unless there is a manditory reason otherwise
.
Putting spaces in form field names will cause
everything to fail.
Appended to the The Form Validator url
you must provide your registered domain name that
you submitted during your registration process
in the form: r=your-domain.com
url parameters are always separated
by the &
symbol. Following your register domain name parameter
you append the e=
parameter and the optional
be= parameter.
Email validation can be implemented
together with all other validations The Form Validator
offers.
Note: There are some limitations
to validating all email addresses. For more details
please review our limitations page.