spotfellas Posted March 29, 2008 Share Posted March 29, 2008 ??? Hi. I am a newb! Now that I got that out of the way... I set up a contact page for my site (http://www.spotfellas.com/contact), but I'm having 2 issues: 1. The page loads but it says it has errors. When I click the error button, a box pops up that says "Line 64, Character 1, Object expected Code 0" I then opened up the page in Dreamweaver and Line 64 says "urchinTracker();" Should I remove this line or should I edit it? 2. I do a test by filling out the form and hitting submit, but I never get an email letting me know that the form has been filled out and submitted. Here is the code of the process.php in case you can see what I did wrong: $mymail = 'info@spotfellas.com'; $cc = 'Form submitted from your website'; $BoDy = ' '; $FrOm = 'FROM:' .$_POST['t1']; $FrOm .= 'Reply-To:' .$_POST['t1']; $FrOm .= 'X-MAILER: PHP'.phpversion(); $BoDy .= 'Name: '; $BoDy .= $_POST['t1']; $BoDy .= "\n"; $BoDy .= 'Company: '; $BoDy .= $_POST['t2']; $BoDy .= "\n"; $BoDy .= 'Phone: '; $BoDy .= $_POST['t3']; $BoDy .= "\n"; $BoDy .= 'Email: '; $BoDy .= $_POST['t4']; $BoDy .= "\n"; $BoDy .= 'Comments: '; $BoDy .= $_POST['t5']; $BoDy .= "\n"; $send = mail("$mymail", "$cc", "$BoDy", "$FrOm"); ///Redirect user to your homepage.... if($send) { echo '<html><head>'; echo '<meta http-equiv="refresh" content="0;URL=http://www.spotfellas.com/thankyou.html">'; echo '</head><body>Email send....'; echo '</body></html>'; } ?> Thank you in advance for helping me with this. Quote Link to comment https://forums.phpfreaks.com/topic/98485-contact-form-problem/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.