email form validator script

JavaScripts javascripts
 

JavaScript
categories

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers

Add script
Account login

 

Home > Scripts > DHTML scripts & JavaScripts > Forms > Advanced email form validator

 

Advanced email form validator script

AUTHOR: Javafile.com
TYPE: Freeware
BROWSERS: Javascript enabled all

An advanced email form validator script. It doesn't require a Sendmail script, the message will be sent through the default email program of the sender.


EXAMPLE

TITLE

LAST NAME

FIRST NAME
DATE OF BIRTH 
TELEPHONE
ADDRESS
CITY
STATE
ZIP CODE
     


1)
Insert this script in the <HEAD> section of the page.

then copy (CTRL-C) & paste (CTRL-V)

2) Insert this complete form in the <BODY> section where you want the email form to appear in the page.

then copy (CTRL-C) & paste (CTRL-V)

3) In the script you can either increase or decrease the amount of fields to be validated in the form depending on your need. For example:

if (document.signup.state.value == "") {
alert("Please fill in your state.")
document.signup.state.focus()
return false}
if (document.signup.country.value == "") {
alert("Please fill in the country.")
document.signup.country.focus()
return false}

Inside the form tags:

Assign the appropriate name to the textbox:

COUNTRY <input type="text" size="10" name="country">

Insert the appropriate e-mail address into the action tag:

<form action="mailto:yourname@your_domain.com" onsubmit="return checkData()" enctype="text/plain" method="POST"  name="signup">
</form>


[BACK] [TOP]

 

BLOGS - BOOKMARKS - FONTS - FRIENDS - GAMES - HEADLINES
MUSIC - PIXELS - SCRIPTS - SOFTWARE - SOUNDS - WEB SEARCH

 


Copyright © 1997-2008 SimplytheBest.net. Legal Disclaimer.
All copyrights acknowledged. All rights reserved.