I am a graphic designer, this is my first attempt at a contact form with php. When I tested this on my personal website which is hosted through godaddy, it worked perfectly.
When I uploaded to the clients site hosted by another co, the forms does email me with the headers, but not the answers.
The are only two fields. The email comes in
Name:
Email:
I do not know anything about php and would appreciate any help!
<?php $emailSubject = 'please add me to your list'; $webMaster = '[email protected]'; /* Gathering data*/ $emailField = $_POST['Name']; $emailField = $_POST['email']; $body = <<<EODEmail: $email
Name: $Name
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 Email thanks body { background-color:#ffffff; } span.menu59Font1 { color:#ffffff; font-size:13px; font-family:"Gill Sans MT", sans serif; align:center; text-align:center; line-height:100%; vertical-align:top;} span.menu59Font2 { color:#ffffff; font-size:13px; font-family:"Gill Sans MT", sans serif; align:center; text-align:left; line-height:100%; vertical-align:top;} span.text1147Font1 { font-size:19px; font-family:"Arial Rounded MT Bold", sans serif; color:#03244d;} span.text1147Font2 { font-size:12px; font-family:"Verdana", sans serif; color:#010101;} EOD; echo "$theResults"; ?>