I wrote the php script for my contact form after watching the video series. I am new to php and tried to make it as simple as I could. I put all the right things on both the contact us and thank you pages. Worked great. I used the same format for one of my clients pages and I cannot get it to work. I copied and pasted, I also rewrote the entire script... still, it will not work on my clients site. tell me what I am doing wrong !!!
Here are the codes:
contactus.php page:
George
Kevin
Broadband Internet
Security Systems
Support
General Questions
thankyou.php page:
<?php
//php form to email code//
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$phone = $_REQUEST['phone'];
$to = $_REQUEST['to'];
$interest = $_REQUEST['interest'];
$message = $_REQUEST['message'];
$headers = "From: $email";
$email_message = "Name: {$name}\n\rEmail: {$email}\n\rPhone: {$phone}\n\rTo: {$to}\n\rInterest: {$interest}\n\rMessage: {$message}";
mail('dgow@simplewebs13.com',$interest,$email_message,$headers);
?>