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>";

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

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;

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.