PHP email form for dummies???
I am working a site for a client and I am a newb to web design and development... so talk slowly and at like a 3rd grade level.
So, I am trying to make an email form - I have designed the form in HTML on my contact page http://gscapedesign.com/contact_us.html
I also created a php file - email_form.php (which I have no idea what I did there... I "hacked" from a tutorial and inserted what I thought was right and relevant to my situation). That said, when the form is completed, an error message comes up reading Parse error: syntax error, unexpected T_CONCAT_EQUAL in /home/content/95/8124395/html/email_form.php on line 17
Code:
<?php
$to = "josh@gscapedesign.com";
$subject = "Greenscape Customer Inquiry";
$message = "Customer name: " . $_POST['name'] . "\r\n" .
"Phone number: " . $_POST['phone'] . "\r\n" .
"Email: " . $_POST['email'] . "\r\n" ."\r\n" .
"Contact: " . $_POST['contact'] . "\r\n" ."\r\n" .
"Services: " . $_POST['landscape design and construction'] . "\r\n" .
"Services: " . $_POST['hardscape design and construction'] . "\r\n" .
"Services: " . $_POST['grounds maintenance'] . "\r\n" .
"Services: " . $_POST['irrigation and drainage systems'] . "\r\n" .
"Services: " . $_POST['lighting'] . "\r\n" .
"Budget: " . $_POST['budget'] . "\r\n" .
$from = $_POST['email'];
$headers = "From: $from" . "\r\n";
$headers = .= "Bcc: kroge16@tigers.lsu.edu" . "\r\n" ;
mail($to,$subject,$message,$headers) ;
?>
Any pointers???