PHP form returning 'Invalid email' error
11-04-11, 07:21 AM
New Member
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
PHP form returning 'Invalid email' error
Let me start out by saying I have no idea what I'm doing but have been asked to create a quote request form on our website.
The page looks 'ok'. My main concern is that when I test the page I get an error saying Invalid Email Address. I want it to collect the informtion, email the office, and email the client. Not so easy!
Can you please look at the code and assist? Be kind, I am a PHP twit! Thanks!
PHP Code:
<? require_once( "mainconf.php" ); $sess = new DB_eSession (& $sess_param ); require( '../php/phpmailer/class.phpmailer.php' ); if( $_GET [ mode ] == "SUBMIT" ) { $im_ver = $_REQUEST [ "im_ver" ]; $name = $_REQUEST [ "name" ]; $email = $_REQUEST [ "email" ]; $phnumber = $_REQUEST [ "phnumber" ]; $fromcity = $_REQUEST [ "fromcity" ]; $frompostcode = $_REQUEST [ "frompostcode" ]; $fromstate = $_REQUEST [ "fromstate" ]; $tocity = $_REQUEST [ "tocity" ]; $tocountry = $_REQUEST [ "tocountry" ]; $shipby = $_REQUEST [ "shipby" ]; $cartons = $_REQUEST [ "cartons" ]; $baggagetype = $_REQUEST [ "baggagetype" ]; $noofitems = $_REQUEST [ "noofitems" ]; $collection = $_REQUEST [ "collection" ]; $c1length = $_REQUEST [ "c1length" ]; $c1height = $_REQUEST [ "c1height" ]; $c1width = $_REQUEST [ "c1width" ]; $c1weight = $_REQUEST [ "c1weight" ]; $c2length = $_REQUEST [ "c2length" ]; $c2height = $_REQUEST [ "c2height" ]; $c2width = $_REQUEST [ "c2width" ]; $c2weight = $_REQUEST [ "c2weight" ]; $c3length = $_REQUEST [ "c3length" ]; $c3height = $_REQUEST [ "c3height" ]; $c3width = $_REQUEST [ "c3width" ]; $c3weight = $_REQUEST [ "c3weight" ]; $c4length = $_REQUEST [ "c4length" ]; $c4height = $_REQUEST [ "c4height" ]; $c4width = $_REQUEST [ "c4width" ]; $c4weight = $_REQUEST [ "c4weight" ]; $c5length = $_REQUEST [ "c5length" ]; $c5height = $_REQUEST [ "c5height" ]; $c5width = $_REQUEST [ "c5width" ]; $c5weight = $_REQUEST [ "c5weight" ]; $c6length = $_REQUEST [ "c6length" ]; $c6height = $_REQUEST [ "c6height" ]; $c6width = $_REQUEST [ "c6width" ]; $c6weight = $_REQUEST [ "c6weight" ]; $c7length = $_REQUEST [ "c7length" ]; $c7height = $_REQUEST [ "c7height" ]; $c7width = $_REQUEST [ "c7width" ]; $c7weight = $_REQUEST [ "c7weight" ]; $c8length = $_REQUEST [ "c8length" ]; $c8height = $_REQUEST [ "c8height" ]; $c8width = $_REQUEST [ "c8width" ]; $c8weight = $_REQUEST [ "c8weight" ]; $c9length = $_REQUEST [ "c9length" ]; $c9height = $_REQUEST [ "c9height" ]; $c9width = $_REQUEST [ "c9width" ]; $c9weight = $_REQUEST [ "c9weight" ]; $c10length = $_REQUEST [ "c10length" ]; $c10height = $_REQUEST [ "c10height" ]; $c10width = $_REQUEST [ "c10width" ]; $c10weight = $_REQUEST [ "c10weight" ]; $otherinsurance = $_REQUST [ "otherinsurance" ]; $otherstorage = $_REQUEST [ "otherstorage" ]; $paymentmethod = $_REQUEST [ "paymentmethod" ]; //present lines $nameline = '<p><strong>Thank you for requesting a quote from Ocean Sky International. We will be in contact with you on the details provided to discuss your quote. </strong></p><p><strong>Name:</strong> ' . $name . '</p>' ; $phnumber = '<p><strong>Phone Number:</strong> ' . $phnumber . '</p>' ; $email = '<p><strong>Email:</strong> ' . $email . '</p>' ; $fromcity = '<p><strong>Moving From City:</strong> ' . $fromcity . '</p>' ; $frompostcode = '<p><strong>Post Code/ZIP:</strong> ' . $frompostcode . '</p>' ; $fromstate = '<p><strong>State:</strong> ' . $fromstate . '</p>' ; $tocity = '<p><strong>Moving To City:</strong> ' . $tocity . '</p>' ; $tocountry = '<p><strong>Country:</strong> ' . $tocountry . '</p>' ; $shipby = '<p><strong>Ship by:</strong> ' . $shipby . '</p>' ; $cartons = '<p><strong>Are flat cartons required:</strong> ' . $cartons . '</p>' ; $baggagetype = '<p><strong>Baggage Type:</strong> ' . $baggagetype . '</p>' ; $noofitems = '<p><strong>No of Items:</strong> ' . $noofitems . '</p>' ; $collection = '<p><strong>Collection required:</strong> ' . $collection . '</p>' ; $c1length = '<p><strong>Item 1 Length:</strong> ' . $c1length . '</p>' ; $c1height = '<p><strong>Item 1 Height:</strong> ' . $c1height . '</p>' ; $c1width = '<p><strong>Item 1 Width:</strong> ' . $c1width . '</p>' ; $c1weight = '<p><strong>Item 1 Weight:</strong> ' . $c1weight . '</p>' ; $c2length = '<p><strong>Item 2 Length:</strong> ' . $c2length . '</p>' ; $c2height = '<p><strong>Item 2 Height:</strong> ' . $c2height . '</p>' ; $c2width = '<p><strong>Item 2 Width:</strong> ' . $c2width . '</p>' ; $c2weight = '<p><strong>Item 2 Weight:</strong> ' . $c2weight . '</p>' ; $c3length = '<p><strong>Item 3 Length:</strong> ' . $c3length . '</p>' ; $c3height = '<p><strong>Item 3 Height:</strong> ' . $c3height . '</p>' ; $c3width = '<p><strong>Item 3 Width:</strong> ' . $c3width . '</p>' ; $c3weight = '<p><strong>Item 3 Weight:</strong> ' . $c3weight . '</p>' ; $c4length = '<p><strong>Item 4 Length:</strong> ' . $c4length . '</p>' ; $c4height = '<p><strong>Item 4 Height:</strong> ' . $c4height . '</p>' ; $c4width = '<p><strong>Item 4 Width:</strong> ' . $c4width . '</p>' ; $c4weight = '<p><strong>Item 4 Weight:</strong> ' . $c4weight . '</p>' ; $c5length = '<p><strong>Item 5 Length:</strong> ' . $c5length . '</p>' ; $c5height = '<p><strong>Item 5 Height:</strong> ' . $c5height . '</p>' ; $c5width = '<p><strong>Item 5 Width:</strong> ' . $c5width . '</p>' ; $c5weight = '<p><strong>Item 5 Weight:</strong> ' . $c5weight . '</p>' ; $c6length = '<p><strong>Item 6 Length:</strong> ' . $c6length . '</p>' ; $c6height = '<p><strong>Item 6 Height:</strong> ' . $c6height . '</p>' ; $c6width = '<p><strong>Item 6 Width:</strong> ' . $c6width . '</p>' ; $c6weight = '<p><strong>Item 6 Weight:</strong> ' . $c6weight . '</p>' ; $c7length = '<p><strong>Item 7 Length:</strong> ' . $c7length . '</p>' ; $c7height = '<p><strong>Item 7 Height:</strong> ' . $c7height . '</p>' ; $c7width = '<p><strong>Item 7 Width:</strong> ' . $c7width . '</p>' ; $c7weight = '<p><strong>Item 7 Weight:</strong> ' . $c7weight . '</p>' ; $c8length = '<p><strong>Item 8 Length:</strong> ' . $c8length . '</p>' ; $c8height = '<p><strong>Item 8 Height:</strong> ' . $c8height . '</p>' ; $c8width = '<p><strong>Item 8 Width:</strong> ' . $cwidth . '</p>' ; $c8weight = '<p><strong>Item 8 Weight:</strong> ' . $c8weight . '</p>' ; $c9length = '<p><strong>Item 9 Length:</strong> ' . $c9length . '</p>' ; $c9height = '<p><strong>Item 9 Height:</strong> ' . $c9height . '</p>' ; $c9width = '<p><strong>Item 9 Width:</strong> ' . $c9width . '</p>' ; $c9weight = '<p><strong>Item 9 Weight:</strong> ' . $c9weight . '</p>' ; $c10length = '<p><strong>Item 10 Length:</strong> ' . $c10length . '</p>' ; $c10height = '<p><strong>Item 10 Height:</strong> ' . $c10height . '</p>' ; $c10width = '<p><strong>Item 10 Width:</strong> ' . $c10width . '</p>' ; $c10weight = '<p><strong>Item 10 Weight:</strong> ' . $c10weight . '</p>' ; $otherinsurance = '<p><strong>Insurance Required:</strong> ' . $otherinsurance . '</p>' ; $otherstorage = '<p><strong>Storage Required:</strong> ' . $otherstorage . '</p>' ; if(! $name || ! $email || ! $phnumber || ! $paymentmethod || ! $frompostcode || ! $fromcity || ! $fromstate || ! $tocity || ! $tocountry || ! $shipby || ! $cartons || ! $baggagetype || ! $noofitems || ! $collection || ! $c1length || ! $c1height || ! $c1width || ! $c1weight ) { $errors = 1 ; $error .= "<p>You did not enter one or more of the required fields.</p>" ; } if (! eregi ( "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.([a-z]){2,5})$" , $email )) { $errors = 1 ; $error .= "<p>Invalid Email Address.</p>" ; } if ( $im_ver != $sess -> getSessVar ( 'ver_string' )) { $errors = 1 ; $error .= "<p>Invalid verification code.</p>" ; } if( $errors == 1 ) echo $error ; else { $mail = new PHPMailer (); $mail -> IsSMTP (); // telling the class to use SMTP $mail -> Host = "localhost" ; // SMTP server<br /> $mail -> FromName = $name ; $mail -> From = $email ; $mail -> AddAddress ( 'osi@oceansky.com.au' ); $mail -> Subject = "Excess Baggage Quote from Ocean Sky International" ; $messageHead = ' <head> <style type="text/css"> <!-- body { font-family: Verdana, Arial, Helvetica, sans-serif; padding: 0 6px 0 6px; font-size: 8px;} p a:link, p a:visited { color: #CCCCCC; text-decoration: none; } p a:hover { color: #AAAAAA; } h2 { font-size: 14px; } h2,h3,h4, p { font-family: Verdana, Arial, Helvetica, sans-serif; padding: 0 6px 0 6px;} p, h4 {font-size: 12px; margin: 16px 0 16px; } h4 {font-weight: strong; text-align: right;} hr { background-color: #0075A7; border: 4px solid #0075A7; } .box { border: 2px solid #a1967a; margin-bottom:20px; } h1 { font-size: 10px; display: block; background-color: #CC0000; padding: 2px 4px 4px 4px; color: #fff; margin: 0; font-family: Verdana, Arial, Helvetica, sans-serif;} #personal { padding: 0px 20px 20px 20px; } h2 { background: 0; color: #000; font-size: 18px;} h3 { background: 0; color: #000; } --> </style> </head> <table width="100%" cellpadding="4" cellspacing="0" bordercolor="#666666"> <tr> <td><font color="#000000" size="+1" face="Arial, Helvetica, sans-serif">Ocean Sky International</td> <td><div align="right"><font color="#000000" size="-2" face="Verdana, Arial, Helvetica, sans-serif">International Moving Quote</font></div></td> </tr> <tr> <td colspan="2"><hr width="100%" size="3"> </td> </tr> <tr> <td colspan="2"> ' ; $messageFooter = ' <p style="border-top: 1px solid #eee; padding-top: 10px; margin-top:20px; font-size: 10px; color: #999;"> This email has been sent via the Excess Baggage quote page on the Ocean Sky website.</p> </td></tr></table> ' ; $message = $messageHead . $nameline . $phnumber . '<p>' . $message . '</p>' . $email . $name . $phnumber . $fromcity . $frompostcode . $fromstate . $tocity . $tocountry . $shipby . $cartons . $baggagetype . $noofitems . $collection . $c1length . $c2height . $c1width . $c1weight . $c2length . $c2height . $c2width . $c2weight . $c3length . $c3height . $c3width . $c3weight . $c4length . $c4height . $c4width . $c4weight . $c5length . $c5height . $c5width . $c5weight . $c6length . $c6height . $c6width . $c6weight . $c7length . $c7height . $c7width . $c7weight . $c8length . $c8height . $c8width . $c8weight . $c9length . $c9height . $c9width . $c9weight . $c10length . $c10height . $c10width . $c10weight . $otherinsurance . $otherstorage . $paymentmethod . $messageFooter ; $mail -> Body = $message ; $mail -> IsHTML ( true ); if(! $mail -> Send ()) { echo "Unfortuntely there was a technical error in sending out your email. Please try again later, we'll have this fixed as soon as possible." ; echo "Mailer Error: " . $mail -> ErrorInfo ; } else { header ( "Location: quotethankyou.php" ); #echo "<p>Thank you for your enquiry. We'll do our best to get back to you as soon as possible.</p>"; #echo($phmodel); #echo($phnumber); } } } else { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Get Quote - Ocean Sky International</title> <link rel='stylesheet' type='text/css' media='all' href='/index.php?css=site/site_css' /> <link rel='stylesheet' type='text/css' media='all' href='/index.php?css=site/lightbox_css' /> <link rel='stylesheet' type='text/css' media='all' href='/css/forms.css' /> <script src="/js/prototype.js" type="text/javascript"></script> <script src="/js/scriptaculous.js?load=effects" type="text/javascript"></script> <script src="/js/lightbox.js" type="text/javascript"></script> <script src="/js/forms.js" type="text/javascript"></script> <script src="/js/prototypenew.js" type="text/javascript"></script> <script src="/js/effectsnew.js" type="text/javascript"></script> <script type="text/javascript" src="/js/fabtabulous.js"></script> <script type="text/javascript" src="/js/validation.js"></script> <link rel="stylesheet" type="text/css" href="/css/style.css"> <link rel='stylesheet' type='text/css' media='all' href='http://ocsk-old.mars.mattersolutions.com/css/style.css' /> </head> <body id="contactus"> <div class="container"> <div id="header"> <div id="oceanSky"><a href="/index.php?"><img src="/images/oceansky.gif" alt="Ocean Sky International" /></a></div> <div class="big-contact"><a href="http://ocsk-old.mars.mattersolutions.com/company/contact.php">Call Us Now</a><span class="big-phone"> 07 3890 6810</span> </div> </div> <div id="nav"> <ul> <li id="nav-home"><a href="/index.php?"><span>Home</span></a></li> <li id="nav-about"><a href="/index.php?/moving/excess_baggage/"><span>Excess Baggage</span></a></li> <li id="nav-moving"><a href="/index.php?/moving/"><span>International Moving</span></a></li> <li id="nav-movingToAustralia"><a href="/index.php?/moving/moving_to_australia/"><span>Moving to Australia</span></a></li> <li id="nav-logistics"><a href="/index.php?/logistics/"><span>International Logistics</span></a></li> <li id="nav-carsBoats"><a href="http://ocsk-old.mars.mattersolutions.com/blog/"><span>Blog</span></a></li> <li id="nav-storage"><a href="/index.php?/storage/"><span>Storage</span></a></li> <li id="nav-contactus"><a href="/company/quote.php"><span>Get Quote!</span></a></li> </ul> </div> <div id="contentWrapper"> <div id="content"> <div id="contentColumn" class="{url_title}" style="background-color: #fff;"> <div><img src="/images/contentbg_top.gif" alt=""/></div> <div style="margin: 14px 10px;"> <h2><strong>Ocean Sky International<span> - </span>Excess Baggage Quote</strong></h2> <form method="post" id="test2" action="<?= $_SERVER [ "PHP_SELF" ] ?> ?mode=SUBMIT"> <p id="fm-intro">Fields marked <strong><span style="color: #ff0000">*</span></strong> are required.</p> <fieldset style="margin: 0;"> <legend>Contact Details</legend> <div class="fm-req"><label class="field-name"><span>*</span>Name: </label><input name="name" id="name" type="text" size="50" class="required" title="Enter your name. This is a required field"/></div> <div class="fm-req"><label class="field-email"><span>*</span>Email: </label><input name="email" id="email" type="text" size="50" class="required validate-email" title="Enter your email. This is a required field"/></div> <div class="fm-req"><label class="field-phone"><span>*</span>Phone: </label><input name="phnumber" id="phnumber" type="text" size="50" class="required" title="Enter your phone number, please use only alphanumeric characters"/></div> <div class="fm-req"> <label><span>*</span>How did you find Ocean Sky?</label> <select name="paymentmethod"> <option value="Please Select">Please Select</option> <option value="Google">Google</option> <option value="Other Search Engine">Other Search Engine</option> <option value="Yellow Pages Book">Yellow Pages Book</option> <option value="Yellow Pages Online">Yellow Pages Online</option> <option value="Referred by Friend">Referred by Friend</option> <option value="Repeat Client">Repeat Client</option> <option value="Other">Other</option> </select> </div> </fieldset> <fieldset style="margin: 0;"> <legend>Quote Type</legend> <div class="fm-req"> <label><span>*</span>What is your preferred shipping method?</label> <select name="shipby"> <option value="Please Select">Please Select</option> <option value="Sea">Sea</option> <option value="Air">Air</option> </select> </div></br> <div class="fm-req"> <label><span>*</span>Do you require cartons to be delivered?</label> <select name="cartons"> <option value="Please Select">Please Select</option> <option value="Yes">Yes</option> <option value="No">No</option> </select> </div></br> <div class="fm-req"> <label><span>*</span>What items are you shipping?</label> <select name="baggagetype"> <option value="Please Select">Please Select</option> <option value="Cartons">Cartons</option> <option value="Suitcases">Suitcases</option> <option value="Suitcases and Cartons">Suitcases and Cartons</option> </select> </div></br> <div class="fm-req"> <label><span>*</span>How many items?</label> <select name="noofitems"> <option value="Please Select">Please Select</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> </div></br> <div class="fm-req"> <legend>Please enter the item Dimensions and Weights</legend> <table> <tr><td> <label>Item 1 Length cm </label><input type="text" name="c1length" maxlength="5" value="" /> <label>Height cm</label><input type="text" name="c1height" maxlength="5" value="" /> <label>Width cm</label><input type="text" name="c1width" maxlength="5" value="" /> <label>Weight kg</label><input type="text" name="c1weight" value="" /> </td></tr> <tr><td> <label>Item 2 Length cm </label><input type="text" name="c2length" value="" /> <label>Height cm</label><input type="text" name="c2height" value="" /> <label>Width cm</label><input type="text" name="c2width" value="" /> <label>Weight kg</label><input type="text" name="c2weight" value="" /> </td></tr> <tr><td> <label>Item 3 Length cm </label><input type="text" name="c3length" value="" /> <label>Height cm</label><input type="text" name="c3height" value="" /> <label>Width cm</label><input type="text" name="c3width" value="" /> <label>Weight kg</label><input type="text" name="c3weight" value="" /> </td></tr> <tr><td> <label>Item 4 Length cm </label><input type="text" name="c4length" value="" /> <label>Height cm</label><input type="text" name="c4height" value="" /> <label>Width cm</label><input type="text" name="c4width" value="" /> <label>Weight kg</label><input type="text" name="c4weight" value="" /> </td></tr> <tr><td> <label>Item 5 Length cm </label><input type="text" name="c5length" value="" /> <label>Height cm</label><input type="text" name="c5height" value="" /> <label>Width cm</label><input type="text" name="c5width" value="" /> <label>Weight kg</label><input type="text" name="c5weight" value="" /> </td></tr> <tr><td> <label>Item 6 Length cm </label><input type="text" name="c6length" value="" /> <label>Height cm</label><input type="text" name="c6height" value="" /> <label>Width cm</label><input type="text" name="c6width" value="" /> <label>Weight kg</label><input type="text" name="c6weight" value="" /> </td></tr> <tr><td> <label>Item 7 Length cm </label><input type="text" name="c7length" value="" /> <label>Height cm</label><input type="text" name="c7height" value="" /> <label>Width cm</label><input type="text" name="c7width" value="" /> <label>Weight kg</label><input type="text" name="c7weight" value="" /> </td></tr> <tr><td> <label>Item 8 Length cm </label><input type="text" name="c8length" value="" /> <label>Height cm</label><input type="text" name="c8height" value="" /> <label>Width cm</label><input type="text" name="c8width" value="" /> <label>Weight kg</label><input type="text" name="c8weight" value="" /> </td></tr> <tr><td> <label>Item 9 Length cm </label><input type="text" name="c9length" value="" /> <label>Height cm</label><input type="text" name="c9height" value="" /> <label>Width cm</label><input type="text" name="c9width" value="" /> <label>Weight kg</label><input type="text" name="c9weight" value="" /> </td></tr> <tr><td> <label>Item 10 Length cm</label><input type="text" name="c10length" value="" /> <label>Height cm</label><input type="text" name="c10height" value="" /> <label>Width cm</label><input type="text" name="c10width" value="" /> <label>Weight kg</label><input type="text" name="c10weight" value="" /> </td></tr> </table> </fieldset> <fieldset> <legend>Moving From:</legend> <div class="fm-req"> <label><span>*</span>Do you wish your items to be collected?</label> <select name="collection"> <option value="Please Select">Please Select</option> <option value="Yes">Yes</option> <option value="No - I will deliver">No - I will deliver</option> </select> </div></br> <div class="fm-req"><label class="field-city"><span>*</span>If yes, collect from what Suburb: </label><input name="fromcity" id="fromcity" type="text" size="50" class="required" title="Enter Suburb. This is a required field"/></div></br> <div class="fm-req"><label class="field-zip">Post Code: </label><input name="frompostcode" id="frompostcode" type="text" size="50"/></div></br> <div class="fm-req"> <label><span>*</span>State:</label> <select name="fromstate" id="fromstate" class="validate-selection validation-failed" title="Choose your State"> <option>Select State</option> <option value="QLD" >QLD</option> <option value="INTERNATIONAL" >International State</option> <option value="VIC" >VIC</option> <option value="NSW" >NSW</option> <option value="WA" >WA</option> <option value="SA" >SA</option> <option value="NT" >NT</option> <option value="ACT" >ACT</option> <option value="TAS" >TAS</option> </select> </div></br> </fieldset> <fieldset> <legend>Moving To:</legend> <div class="fm-req"> <label><span>*</span>List the destination City:</label> <input name="tocity" id="tocity" type="text" size="50" class="required" title="List the destination City"/> </div> <div class="fm-req"> <label><span>*</span>Country:</label> <select name="tocountry" id="tocountry" class="validate-selection validation-failed" title="Choose your country"> <? include '../php/country_list.php' ; ?> </select> </div> </fieldset> <fieldset> <legend>Other Details:</legend> <div class="fm-opt"> <label>Is Insurance required?</label> <div class="inline-options"> <label> <input type="radio" name="otherinsurance" value="Yes"> Yes</label> <label> <input type="radio" name="otherinsurance" value="No"> No</label> <label> <input type="radio" name="otherinsurance" value="Maybe"> Maybe</label> </div> </div> <div class="fm-opt"> <label>Is Storage required?</label> <div class="inline-options"> <label> <input type="radio" name="otherstorage" value="Yes"> Yes</label> <label> <input type="radio" name="otherstorage" value="No"> No</label> <label> <input type="radio" name="otherstorage" value="Maybe"> Maybe</label> </div> </fieldset> <fieldset> <legend>Verification:</legend> <div class="fm-opt"> <label>Verification Image:</label> <input type="image" name="verifyimg" src="verificationimage.php" alt="verification image" class="verify" disabled /> </div> <div class="fm-opt"> <label>Verification Image:</label> <input name="im_ver" type="text" size="50" /> </div> </fieldset> <div id="fm-submit" class="fm-req"><input type="submit" value="Submit Enquiry" /> <input value="Reset" onclick="valid2.reset(); return false" type="button"></div> <? } ?> </form> <script type="text/javascript"> var valid2 = new Validation('test2', {useTitles:true}); </script> </div> </div> <div id="footer"> <div id="footbg"> <div class="footContainer"> <div id="contactDetails"> <h3>Ocean Sky International</h3> <div id="quickContact"> <p><strong>Australian Head Office</strong><br/> 32 Londor Close<br/> Hemmant Brisbane QLD<br/> Australia 4174<br/> » <a href="http://www.hotscripts.com/forums/images/map.gif" rel="lightbox" title="32 Londor Close, Hemmant, Brisbane QLD Australia 4174">View Street Map</a></p> <p><strong>Postal Address</strong><br/> PO Box 478<br/> Cannon Hill Brisbane<br/> QLD Australia 4174</p> <p style="margin-right:0;"><strong>Contact Numbers</strong><br/> Phone: +61 7 3890 6810<br/> Fax: +61 7 3890 6888<br/> Toll Free: 1800 736 682<br/>(Within Australia only)</p> </div> </div> <div id="emailUs"> <h3>Email Us</h3> <p>We're always here to answer any questions or concerns so please, drop us a line! <a href="/company/contact.php">Email Ocean Sky</a></p> </div> </div> <p id="footerText">© 2011 Ocean Sky International</p> </div> </div> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-1944707-1"); pageTracker._initData(); pageTracker._trackPageview(); </script> </body> </html>
Last edited by UnrealEd; 11-05-11 at 06:51 AM .
11-05-11, 06:54 AM
Community Liaison
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
That's impossible: simple reason, if the email address is wrong, you can't email the client, since you don't have the correct address
OR... did you mean that whenever you enter a valid email address, your script still says it's wrong?
__________________
"Good judgement comes from experience, and experience comes from bad judgement." -
Fred Brooks
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off