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 = '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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.