Jump to content

Contact Form Problem


Recommended Posts

???

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 = '[email protected]';

$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.

Link to comment
https://forums.phpfreaks.com/topic/98485-contact-form-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.