<!--
Do not modify the NAME value of any of the INPUT fields the FORM action, or any of the hidden fields (eg. input type=hidden). These are all required for this form to function correctly. --> <style> .myForm td, input, select, textarea, checkbox { font-family: tahoma; font-size: 12px; } .required { color: red; } </style> <form method="post" action="http://www.gaiauniversity.org/emailmarketer/form.php?form=2" id="frmSS2" onSubmit="return CheckForm2(this);"> <table border="0" cellpadding="2" class="myForm"> <tr> <td><span class="required">*</span> Your email address:</td> <td><input type="text" name="email" value=""></td> </tr><tr> <td><span class="required">*</span> Preferred Format:</td> <td><select name="format"><option value="h">HTML</option><option value="t">Text</option></select></td> </tr><tr> <td> First Name:</td> <td><input type="text" name="CustomFields[2]" id="CustomFields_2_2" value="" size='50'></td> </tr><tr> <td> Last Name:</td> <td><input type="text" name="CustomFields[3]" id="CustomFields_3_2" value="" size='50'></td> </tr><tr> <td><span class="required">*</span> Enter the security code shown:</td> <td> <script> var SIDString = ''; function getRandomLetter() { return String.fromCharCode(getRandom(65, 90)); } function getRandom(lowerBound, upperBound) { return Math.floor((upperBound - lowerBound + 1) * Math.random() + lowerBound); } function SetSID() { if (SIDString.length > 0) { return SIDString; } sidc = 0; while (sidc < 32) { SIDString = SIDString + getRandomLetter(); sidc++; } return SIDString; } </script> <script> var url = "http://www.gaiauniversity.org/emailmarketer/admin/resources/form_designs/captcha/index.php?c=" + getRandom(1,1000)+ "&ss=" + SetSID(); document.write("<img src='" + url + "' alt='img'/>"); </script><br/><input type="text" name="captcha" value=""></td> </tr> <tr> <td></td> <td> <input type="submit" value="Subscribe"> <br/><span style="display: block; font-size: 10px; color: gray; padding-top: 5px;"><a href="http://www.interspire.com/emailmarketer" target="__blank" style="font-size:10px;color:gray;">Email marketing</a> by Interspire</span> </td> </tr> </table> </form> <script language="javascript"> function CheckMultiple2(frm, name) { for (var i=0; i < frm.length; i++) { fldObj = frm.elements[i]; fldId = fldObj.id; if (fldId) { var fieldnamecheck=fldObj.id.indexOf(name); if (fieldnamecheck != -1) { if (fldObj.checked) { return true; } } } } return false; } function CheckForm2(f) { var email_re = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i if (!email_re.test(f.email.value)) { alert("Please enter your email address."); f.email.focus(); return false; } if (f.format.selectedIndex == -1) { alert("Please choose a format to receive your email campaigns in"); f.format.focus(); return false; } if (f.captcha.value == "") { alert("Please enter the security code shown"); f.captcha.focus(); return false; } return true; }; </script> |
|||






