October 28, 200817 yr Hi all heres my php <?php $to = "myemail@mydomain.com"; $re = "Website Feedback"; $your_company = $_GET['company']; $your_name = $_GET['name']; $your_phone = $_GET['phone']; $your_email = $_GET['email']; $your_message = $_GET['message']; $subject = "From" . $email; $headers .= 'Content-type: text/html; charset=iso-8859-1'; $content = "<html><head><title>Contact Us</title></head><body><br>"; $content .= "Company: <b>" . $company . "</b><br>"; $content .= "Name: <b>" . $name . "</b><br>"; $content .= "Phone: <b>" . $phone . "</b><br>"; $content .= "E-mail: <b>" . $email . "</b><br><hr><br>"; $content .= $message; $content .= "<br></body></html>"; mail($to,$subject,$content,$headers); ?> which looks ok and the email it send is set out just fine but!!! when the mail does come thorugh it shows like below: Company: Name: Phone: Email Message: yes thats right nothing else on it. So what have i done worng and what do i need to put in in order for the inout fields filled by the customer to show in the email??? Also when the email arrives it just shows "From" and doesnt exactly say who its from help on this matter too would be appreictaed. Cheers Lee
October 28, 200817 yr you tranfer your get variables to $your_something than you put them in the mail as $something you forgot the your_
October 28, 200817 yr <?php $to = "myemail@mydomain.com"; $re = "Website Feedback" $your_company = addslashes($_GET['company']); $your_name = addslashes($_GET['name']); $your_phone = addslashes($_GET['phone']); $your_email = addslashes($_GET['email']); $your_message = addslashes($_GET['message']); $subject = "From" . $your_email; $headers .= 'Content-type: text/html; charset=iso-8859-1'; $content = "<html><head><title>Contact Us</title></head><body><br>"; $content .= "Company: <b>" . $your_company . "</b><br>"; $content .= "Name: <b>" . $your_name . "</b><br>"; $content .= "Phone: <b>" . $your_phone . "</b><br>"; $content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>"; $content .= $your_message; $content .= "<br></body></html>"; mail($to,$subject,$content,$headers); ?>
October 29, 200817 yr Hi in your contact form what method are you using eg method="post" or method="get"
Create an account or sign in to comment