< !-- THREE STEPS TO INSTALL SUBMIT ONCE:

1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag
3. Put the last coding into the BODY of your HTML document -->

< !-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

< !-- This script and many more are available free online at -->
< !-- The JavaScript Source!! http://javascript.internet.com -->

< !-- Begin
var submitcount=0;

function reset() {
document.emailform.name.value="";
document.emailform.email.value="";
document.emailform.comments.value="";
}

function checkFields() { // field validation -
if ( (document.emailform.name.value=="") &#0124; &#0124; // checks if fields are blank.
(document.emailform.email.value=="") &#0124; &#0124; // More validation scripts at
(document.emailform.comments.value=="") ) // forms.javascriptsource.com
{
alert("Please enter your name, email, and comments then re-submit this form.");
return false;
}

else
{
if (submitcount == 0)
{
submitcount++;
return true;
}
else
{
alert("This form has already been submitted. Thanks!");
return false;
}
}
}
// End -->
</script>
</HEAD>

< !-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

<BODY OnLoad="reset()">

< !-- STEP THREE: Copy this code into the BODY of your HTML document -->

<form method=post action="http://cgi.freedback.com/mail.pl" name="emailform" onSubmit="return checkFields()">

<input type=hidden name=to value="you@your-website-address-here.com">
<input type=hidden name=subject value="Feedback Form">

<pre>
Your Name: <input type=text name="name">
Your Email: <input type=text name="email">

Comments?

<textarea name="comments" wrap="virtual" rows="7" cols="45"></Textarea>

<input type=submit value="Submit Form!">

[ Click the submit button twice to see the script in action ]
</pre>
</form>

<center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided

by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center>

< !-- Script Size: 2.05 KB -->