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
1) Insert this script in the <HEAD> section of the page.
2) Insert this complete form in the
<BODY> section where you want the email form to appear in the page.
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: