<!-- SUBSCRIBE FORM --> <!-- This goes into the HEAD of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2003, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- function checkForm() { document.form.Email.value = " " + document.form.Email.value; if (document.form.Name.value == "") { // this part of the script is alert('The Name field is empty!'); return false; } // related to the Name field mail = document.form.Email.value; // this part of the script is if ((mail.indexOf('@') == -1) || (mail.indexOf('.') == -1)) { alert('The E-mail address is invalid!'); return false; } // related to the E-Mail field document.form.AppName.value = navigator.appName; document.form.AppVersion.value = navigator.appVersion; document.form.Resolution.value = window.screen.width + " X " + window.screen.height; return true; } // --> </script> </head> <body bgcolor="#ffffff"> <!-- This goes in the BODY the html file --> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td bgcolor="#808080" align="center" colspan="2"> <font face="verdana, arial, helvetica, sans-serif" size="2" color="#ffffff"> <b>Subscribe Form</b> </font> </td> </tr> <form name="form" method="post" action="mailto:name@domain.com?SUBJECT=Subscribe Form" enctype="text/plain" onSubmit="javascript:return checkForm()";> <!-- change the E-Mail address and Subject line in the form field above --> <tr> <td> <font face="verdana, arial, helvetica, sans-serif" color="#000000" size="1"> Name:&nbsp;&nbsp; </font> </td> <td> <input size="30" name="Name" style="font-size: 9pt" /> <input type="hidden" name="AppName" /> <input type="hidden" name="AppVersion" /> <input type="hidden" name="Resolution" /> </td> </tr> <tr> <td> <font face="verdana, arial, helvetica, sans-serif" color="#000000" size="1"> E-mail:&nbsp;&nbsp; </font> </td> <td> <input size="30" name="Email" style="font-size: 9pt" /> </td> </tr> <tr> <td align="center" colspan="2"> <font face="verdana, arial, helvetica, sans serif" size="1"> HTML:&nbsp;<input type="radio" name="Type" value="HTML" checked />&nbsp;&nbsp;&nbsp;&nbsp; Text:&nbsp;<input type="radio" name="Type" value="Text" /> </font> </td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" value="Submit" style="font-size: 9pt" />&nbsp; <input type="reset" value="Reset" style="font-size: 9pt" />&nbsp; </td> </tr> </tr> </form> </table> </body>