News

Log In Sponsors
Partner Sites





Not validating emails.



Hi my script will not run the code to check email, here is the code, and any help will be great. <style type="text/css"> <!-- .style5 {font-family: Verdana, Arial, Helvetica, sans-serif} .floatingImage { position: absolute; left: 597px; top: 109px; width: 415px; height: 76px; } a:link { color: #009900; } --> </style> <style type="text/css"> <!-- .style11{ font-size:80%; position:super; vertical-align:super; } --> </style> <style type="text/css"> <!-- .style12{ font-size:75%; position:super; vertical-align:top; } --> </style> <SCRIPT language="JavaScript"> function calculateOrder() { var quantity, totalOrder; quantity = parseFloat(document.frmOrder.BookNumber.value); totalOrder = quantity * 12.95; document.frmOrder.Price.value = totalOrder.toFixed(2); } </SCRIPT> <script type="text/javascript"> function CompareEmail(Email, ConfirmEmail) var Email == document.frmOrder.Email.value; var ConfirmEmail == document.frmOrder.Confirm Email.value; { if (Email == Confirm Email){ return true; } else if (Email == '' || Confirm Email == '') { alert('Please fill out both email fields.'); return false; }else{ (Email != Confirm Email) alert('Email values are not equal to one another!'); return false;} } </script> <link href="forms.css" rel="stylesheet" type="text/css" /> </head> <body class="oneColFixCtrHdr"> <div id="container"> <div id="header"> <!-- end #header --></div> <div id="mainNav"> <ul> </ul> </div> <div id="mainContent"> <div id="rightcolumn"> </div> <div class="style1" id="leftcolumn" style="position:absolute; width:420px; top:185px;padding-right:5px;"> <h1 class="titles">Manual $12.95 + shipping and handling</h1> Printed using 100% recycled paper: 68 pages, 8.5&quot; x 11&quot;, coil binding, black and white interior ink.<br /> Maufactured using the ECOLITH<span class="style11">®</span> Process.<br /> <br /> <span class="titles"><strong>Description</strong></span><br /> <br /> Learn the basics of how the real estate profession will participate in the new arena of &quot;green.&quot; Topics are discussed as an introduction as the first level in the highly acclaimed &quot;Real Estate Environmental and Energy Education Certification Series.&quot; This series will be written and produced over the next 4 years, with collaboration by &quot;green building&quot; experts knowledgeable in all phases of the &quot;green&quot; built structure. <p>&nbsp;</p> <FORM METHOD="POST" ACTION="mailto:?&subject=Green Manual Order!!:) " ENCTYPE="text/plain" method="post" name="frmOrder" onsubmit="return CompareEmail(Email, ConfirmEmail);"> <legend></legend> <label for="required1"><span>*</span>Email</label> <input type="text" name="Email" id="Email*" /><br /> <label for="required2"><span>*Confirm Email</span></label> <input type="text" name="Confirm Email" id="ConfirmEmail*" /><br /> <label for="BookOrder">Number of Books</label> <input type="text" name="BookNumber" size="5" maxlength="5" id="Number of Books" onchange="calculate()" value="0" /> <input type="button" value="Calculate" name="btnCalculate" onClick="calculateOrder()"><br /> <label for="Price">Price$</label> <input type="text" name="Price" size="10" maxlength="15" id="Price of Books" /> (+ Shipping and Handling and Taxes)<br /> <br/> <input type="submit" value="Submit" onclick="return CompareEmail(Email, ConfirmEmail);"><br /> <label for="Confirm">We will call you to confirm your order, shipping, and payment details.</label><br /><br /> </fieldset> </form> </div> </div> </body> </html>

Click here to read the whole forum topic