»
EnglishFrenchVietnamese

Print - War's web form - JavaScriptBank.com

Full version: jsB@nk » Email » War's web form
URL: http://www.javascriptbank.com/war-web-form.html

War's web form © JavaScriptBank.comThis Web form utilizes the sender's e-mail. This form has a validation for information added; if all is entered correctly, the sender will be directed to a 'thank you' page.

Full version: jsB@nk » Email » War's web form
URL: http://www.javascriptbank.com/war-web-form.html



JavaScript
<script language="JavaScript">//Co-Author: WarO<!--                        function checkData (){                                 if (document.signup.NAME.value == "") {                                        alert("Please fill in your name.")                                        document.signup.NAME.focus()                                        return false}                                if (document.signup.EMAIL.value == "") {                                        alert("Please fill in your e-mail address.")                                        document.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 usedlocation.href="../browser/popupcontent.html";        return true;  }}// --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
You also can contact us through this Web form.<br><em>This form will utilize your e-mail address.</em><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"></textarea>optional</td></tr><tr><td>&nbsp;</td><td><table width="219" border="0" cellspacing="5" cellpadding="5"><tr><td width="57"><input name="B1" type="submit" value="Submit"></td><td width="50"><input type="reset" name="B2" value="Reset"></td><td width="62">&nbsp;</td></tr></table></td></tr></table></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->