PHP email problem

Reply

Join Date: Apr 2004
Posts: 1
Reputation: tom.hum3 is an unknown quantity at this point 
Solved Threads: 0
tom.hum3 tom.hum3 is offline Offline
Newbie Poster

PHP email problem

 
0
  #1
Apr 27th, 2004
Hello, Im trying to send an email which will send information from a enquiry form. but everytime i fill in the details and press send this error comes up:

Parse error: parse error, unexpected T_VARIABLE on line 5
have i done this wrong?

<?php

$to = "thomashumphrey@hotmail.com";
$re = "Enquiry Form";
$msg = "Surname: " $surname,
"Firstname: " $first_name,
"Address: " $address,
"Country: " $country,
"Phone: " $phone_home,
"Fax: " $fax,
"E-mail: " $email,
"Hectares: "$hectares,
"Tonnage: "$tonnage,
"Specific model: "$specific;

mail($to,$re,$msg);

?>
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 282
Reputation: Roberdin will become famous soon enough Roberdin will become famous soon enough 
Solved Threads: 6
Team Colleague
Roberdin Roberdin is offline Offline
Supreme Evil Overlord

Re: PHP email problem

 
0
  #2
Apr 28th, 2004
You've missed out a dot between the "surname" and the $surname.

But... why not just have "Surname: $surname Firstname: $first_name" etc rather than bothering with the dots... otherwise you're wasting resources.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC