<html>
<head>
<title>Complete Bravenet HTML Email Form And Validator</title>
<SCRIPT>
<!--
// E-mail Form - Validator
// Bravenet Web Services - www.bravenet.com
function checkData() {
var correct = true
if (document.Bravenet.name.value == "") {correct = false; alert("Please enter your name!")}
if (document.Bravenet.sitename.value == "") {correct = false; alert("Please enter your site name or enter N/A!")}
if (document.Bravenet.siteaddress.value == "") {correct = false; alert("Please enter web site address or enter N/A!")}
if (document.Bravenet.replyemail.value == "") {correct = false; alert("Please enter your e-mail address!")}
if (document.Bravenet.additionalcomments.value == "") {correct = false; alert("Please enter your comments")}
/*
You can add more variables above.
The name after the word Bravenet has to match the name in the form below.
*/
if (correct){alert("Thank you for taking your time to fill out this form.")}
return correct
}
//-->
</SCRIPT>
</head>
<body bgcolor="#000000" text="#9966ff" link="#ffa500" alink="#ffff00" vlink="#ffa500">
<basefont size="3">
<P><CENTER><FORM onSubmit="return checkData()" name="Bravenet"
action="http://pub27.bravenet.com/emailfwd/senddata.php" method="POST">
<INPUT type="hidden" name="usernum" value="xxxxxxxxxx">
<INPUT type="hidden" name="cpv" value="1">
<TABLE BORDER=0 WIDTH=400 BGCOLOR="#000000" CELLPADDING=7>
<TR><TD>
<CENTER><B><FONT COLOR="#fff0f5"><FONT SIZE=+1></FONT></FONT></B></CENTER>
</TD></TR><TR><TD>
<P>Name Or Nickname
<BR><INPUT type="text" name="name" size="40" maxlength="100" value="">
<P>Website Title
<BR><INPUT type="text" name="sitename" size="40" maxlength="100" value="">
<P>Site Address
<BR><INPUT type="text" name="siteaddress" size="40" maxlength="100" value="">
<P>Your E-Mail Address
<BR><INPUT TYPE=TEXT NAME=replyemail SIZE=40 value="">
<P>Additional Comments
<BR><TEXTAREA WRAP=VIRTUAL NAME="additionalcomments" COLS=40 ROWS=5>
</TEXTAREA>
</TD></TR><TR><TD ALIGN=CENTER>
<BR><INPUT type="submit" name="submit" value="Submit Your Form">
<INPUT type="reset" name="reset" value="Clear Form"></TD>
</TR></TABLE></FORM></CENTER></FONT>
</body>
</html>
I
f you would copy and paste the above complete HTML document from the opening <HTML> tag to the closing </HTML> tag and paste it into our below script tester, you shall see it is a perfectly functional email form with validation. You can send us your comments on it from there also if you so desire.
[ HTML Script Tester ]
I f the prior page was at all unclear, we hope that this should clarify any and all questions on how to make it work. Also you may notice we did not add any value="" to any of the fields so they are blank.
This Site Was Built And Is Maintained Exclusively by
The Webmaster @ Consigliere Ltd.
Copyright © 2001-2002, The Consigliere™ Ltd., All Rights Reserved.