Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Form Posts & Emails with no Data Returned

Explorer ,
Aug 25, 2009 Aug 25, 2009

Copy link to clipboard

Copied

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!

TOPICS
Server side applications

Views

657
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 27, 2009 Aug 27, 2009

Copy link to clipboard

Copied

LATEST

Tamist wrote:

The email was sent to me with all the identifiers.  However, nothbing was populated.

Not surprising. You assign all the form values to variables that are never used, and use completely different variables that have no values to populate the email. Take this example:

$FNameField = $_POST['firstname'];

Then this this what you put in the email:

firstname: $firstname <br>

It should be this:

firstname: $FNameField <br>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines