Hi there
This exact question has come up before from 'cap2587' as I am having the exact same problem:
When someone fills out my contact form and submits it, I get an email, however, none of the information typed in the boxes by the customer appears in the email. I also used tutvid.com tutorials but still does not work.
The php script looks like this:
------------------------------------------------------------------------------------------
<?php
/* Subject and Email Variables */
$emailSubject = 'Free Consultation!';
$webMaster = 'me@mysite.com';
/* Gathering Data Variables */
$nameField = $_POST['name'];
$emailField = $_POST['email'];
$email2Field = $_POST['email2'];
$phoneField = $_POST['phone'];
$postcodeField = $_POST['postcode'];
$servicesField = $_POST['services'];
$goalsField = $_POST['goals'];
$otherField = $_POST['other'];
$timeframeField = $_POST['timeframe'];
$locationField = $_POST['location'];
$timesField = $_POST['times'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
Re-enter Email: $email2 <br>
Phone Number: $phone <br>
Postcode: $postcode <br>
Services: $services <br>
Goals: $goals <br>
Other: $other <br>
Timeframe: $timeframe <br>
Location: $location <br>
Times: $times <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html........blah blah blah....
.........................................
</html>
EOD;
echo "$theResults";
------------------------------------------------------------------------------------------
I have basically created an entire new website myself and all that needs to be done is the contact page - is driving nuts! :-(
Please could someone give me some assistance here? If 'cap2587' reads this, please could you let us know what you did?
Thank you in advance
Doolz77
This exact question has come up before from 'cap2587' as I am having the exact same problem:
When someone fills out my contact form and submits it, I get an email, however, none of the information typed in the boxes by the customer appears in the email. I also used tutvid.com tutorials but still does not work.
The php script looks like this:
------------------------------------------------------------------------------------------
<?php
/* Subject and Email Variables */
$emailSubject = 'Free Consultation!';
$webMaster = 'me@mysite.com';
/* Gathering Data Variables */
$nameField = $_POST['name'];
$emailField = $_POST['email'];
$email2Field = $_POST['email2'];
$phoneField = $_POST['phone'];
$postcodeField = $_POST['postcode'];
$servicesField = $_POST['services'];
$goalsField = $_POST['goals'];
$otherField = $_POST['other'];
$timeframeField = $_POST['timeframe'];
$locationField = $_POST['location'];
$timesField = $_POST['times'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
Re-enter Email: $email2 <br>
Phone Number: $phone <br>
Postcode: $postcode <br>
Services: $services <br>
Goals: $goals <br>
Other: $other <br>
Timeframe: $timeframe <br>
Location: $location <br>
Times: $times <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html........blah blah blah....
.........................................
</html>
EOD;
echo "$theResults";
------------------------------------------------------------------------------------------
I have basically created an entire new website myself and all that needs to be done is the contact page - is driving nuts! :-(
Please could someone give me some assistance here? If 'cap2587' reads this, please could you let us know what you did?
Thank you in advance
Doolz77

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Back to top








