0

Hi everyone: I have a form that will submit but won't show any data. No errors though. Does the syntax suggest anything right off the bat? It was working well until I broke up the $msgbody vertically for ease of reading. Thx

$msgbody = ;
"Referred by  = " . $referredby;
"<br>";
"Your Full Name  = " . $fromname;
"<br>";
"Your Street Address  = " . $street;
"<br>";
"City  = " . $city;
"<br>";
"State  = " . $state;
"<br>";
"Zip Code  = " . $zip;
"<br>";
"Your home telephone number (xxx-xxx-xxxx)  = " . $homephone;
"<br>";
2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by darkagn
0

Your first line

$msbody = ;

doesn't do anything. What you want is this:

$msgbody = "Referred by = " . $referredby;
$msbody .= "<br>";
$msbody .= "Your Full Name = " . $fromname; 
// etc
0

tried that it none of the data was in the email.
Here's what I ended up with that worked

$msgbody = "Referred by  = " . $referredby
."<br>"
."Your Full Name  = " . $fromname
."<br>"
."Your Street Address  = " . $street
."<br>"
."City  = " . $city
."<br>"
."State  = " . $state
."<br>"
."Zip Code  = " . $zip;
0

This code will create a string called $msgbody, but what do you do with it to try to add it to an email?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.