Form Posts & Emails with no Data Returned
- August 26, 2009
- 1 reply
- 680 views
I'm working on a php form that I'm trying to feed through GoDaddy's network. I have a beginner's understanding and took code to create the php file that was linked in the "actions" part of the DW CS3 form's file.
The email was sent to me with all the identifiers. However, nothbing was populated. Further, the sender's email wasn't posted - this is what was listed for the sender:
sophisticup@p3nlh164.shr.prod.phx3.secureserver.net
The form can be reached here: http://www.sophisticup.com/SignUp.php
I think I'm missing something small but it is having a great effect on my final results. Can anyone help me?
Thanks!
Below is my code for the linked "action" php file:
<?php
/* Subject and Email Variables */
$emailSubject = 'Sign Up Form';
$webMaster = 'info@sophisticup.com';
/* Gathering Data Variables */
$FNameField = $_POST['firstname'];
$LNameField = $_POST['lastname'];
$TitleField = $_POST['title'];
$Add1Field = $_POST['address1'];
$Add2Field = $_POST['address2'];
$CityField = $_POST['city'];
$StateField = $_POST['state'];
$ZipField = $_POST['zipcode'];
$EmailField = $_POST['email'];
$PhoneField = $_POST['phone'];
$EmailPhoneField = $_POST['emailorphone'];
$CallTimeField = $_POST['timetocall'];
$RevenueField = $_POST['revenue'];
$GSizeField = $_POST['gsize'];
$CommentsField = $_POST['comments'];
$body = <<<EOD
<br><hr><br>
firstname: $firstname <br>
lastname: $lastname <br>
title: $title <br>
address1: $address1 <br>
address2: $address2 <br>
city: $city <br>
state: $state <br>
zipcode: $zipcode <br>
email: $email <br>
phone: $phone <br>
eorph: $emailorphone <br>
CallTime: $timetocall <br>
Revenue: $revenue <br>
GrpSize: $gsize <br>
Comments: $comments <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>
<head>
<title>Sophisticup - Fundraising Boutique for the Home</title>
<meta http-eequiv="Content-type" content="text/html; charset=iso-8859-1">
<style type-"text/css">
<!--
body {
background-color: #D3E8A4;
font-family: Tahoma, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #000000;
text-decoration: none;
}
</style>
</head>
<div>
<div align="center">Thank you for your interest! If requested, Sophisticup will contact you very soon.</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
Thanks in advance!
