Subscribe now and get the first month free!

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>

 
  email address 
  password 

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.

  1. r= required and must be set to your registered domain name. In the example the registered domain name is "4i4.net" because the form is be served by this domain.
  2. ac= identifies to The Form Validator the form element you want to use for the login ID for access control.
  3. ap= identifies to The Form Validator the form element you want to use for login password for access control.
  4. e= identifies to The Form Validator the name of your email form field. In the example the form contains a data input field called "address_email" into which people will type their email address. Setting "e=address_email" tells The Form Validator to use what ever is entered into that field as the email address to check with its internet email server lookup. If you have more than one form element which needs email validation you can include them all in the "e=" parameter separated by a coma which might look like "e=your_email,friends_email".
  5. be=n,n,y this is an optional parameter indicating "blank email" is yes, ok. Use this feature when you want to accept blank input. Use a comma seperated list aligned with your field names.
  6. Optionally you can append the speak=y to the url. This enable the synthetic voic response.

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.