Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>War's web form</title>
<script language="JavaScript">
//Co-Author: WarO
<!--
function checkData (){
if (********.signup.NAME.value == "") {
alert("Please fill in your name.")
********.signup.NAME.focus()
return false}
if (********.signup.EMAIL.value == "") {
alert("Please fill in your e-mail address.")
********.signup.EMAIL.focus()
return false;
//you can add more entries if needed; just follow the same pattern
}
else {
// If reached this far then thank user, submit form and show redirect page
alert ("'Thank you for your registration submission.'" +signup.NAME.value + " '' \nPlease wait a moment while your data is sent to our server");
// put the redirect url in here absolute or relative urls can be used
********.href="thankyou.htm";
return true;
}
}
// -->
</script>
<**** http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<p><font face="Arial, Helvetica, sans-serif">You also can contact us through this Web form.<br>
<em>This form will utilize your e-mail address.</em></font></p>
<form action="mailto:your e-mail here@simple.com" method="post" name="signup" enctype="text/plain" onsubmit="return checkData()">
<table width="100%" border="0" cellpadding="5" cellspacing="0" id="addform">
<tr><td width="25%">Name:</td>
<td width="75%"><input name="NAME" type="text" id="NAME"></td></tr>
<tr><td>Phone Number:</td>
<td><input name="NUMBER" type="text" id="NUMBER">optional</td></tr>
<tr><td>E-mail:</td>
<td><input name="EMAIL" type="text" id="EMAIL"></td></tr>
<tr><td>Would you like us to contact you for an estimate?</td>
<td>
<table width="60%" border="0" cellspacing="0" cellpadding="5">
<tr><td height="31">Yes <input type="radio" name="YES" value="radiobutton"></td>
<td>No <input type="radio" name="NO" value="radiobutton"></td></tr>
</table></td></tr>
<tr><td>Comments:</td>
<td><textarea name="comments" rows="5" id="comments">