I have two pages and I am having problems with the mailing to my domain email. The first page here is where I fill in the information and then it takes me to the second page. Can someone tell me where the problem is this is the error I get when I try to submit I get this message on the second page. Please fill in all the required items. Please go back and try again. These scripts are in a html page but are used to send form mail to me and then go to another page
--------------------------------------1st page— getstarted.php
Order Form
Name * |
|
Email Address * |
|
Company Name * |
|
Website URL |
|
--------------------------------------2nd page getstarted-success.php
Subscribing with <?php echo $site_option['site_name']; ?>
<?phpif($_POST[“name”] != null && $_POST[“email”] != null && $_POST[“company”] != null){
$to = $site_option[‘sales_email’];
$subject = “You Have a New Order!”;
$body = "Name: “.$_POST[“name”].”\nEmail: “.$_POST[“email”].”\nSkype: “.$_POST[“skype”].”\nCompany: “.$_POST[“company”].”\nWebsite: ".$_POST[“website”];
$headers = 'From: '.$_POST[“email”];
if (mail($to, $subject, $body, $headers)) {
echo “
Thank you! Your order was submitted successfully. Please use the PayPal link below to subscribe to our services so we can get your mobile web site setup for you.
echo ’ '.$site_option['paypal_link'].''; //create inset query $query="INSERT INTO `customers` (`name`, `email`, `company`, `url`) VALUES ('".$_POST["name"]."', '".$_POST["email"]."', '".$_POST["company"]."', '".$_POST["website"]."')"; $result=mysql_query($query) or message_die('getstarted.php','MYSQL_QUERY',$query,mysql_error());
}
else {
echo “
Something went wrong with the order. Please go back and try again.
}
}
else {
echo “
Please fill in all the required items. Please go back and try again.
}
?>
I also am not getting any information from the echo $site_option
like the following
Address: <?php echo $site_option['address1']." ".$site_option['address2']; ?>
Telephone: <?php echo $site_option['phone']; ?>
E-mail: <?php echo $site_option['sales_email']; ?>
<?php echo $site_option['twitter_link']; ?>Hope this isn’t to long as this is my first post but I can’t figure it out and hope someone here can.
Thank You