arl_balan
2009-09-23 10:27:40 UTC
Like before i do not get any error messages. Hhhhmmm weird...
Hope to find a quick solution on this one.
Thanks again.
Arnold
--------------------
$con = mysql_connect("localhost","tambo_arnold","lancepfd");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tambocom_tambo", $con);
$query = "INSERT INTO contacts('customerid', 'name', 'homeadd', 'fishpondadd', 'mobile', 'inquire', 'email')
VALUES ('', '{$_POST['name']}', '{$_POST['homeadd']}', '{$_POST['fishpondadd']}', '{$_POST['mobile']}', '{$_POST['inquire']}', '{$_POST['email']}')";
mysql_query($query);
if (!mysql_query($query,$con))
{
die('Error: ' . mysql_error());
}
$from = "$_POST[email]";
mail("sales@tambo888.com","Tambo Aquatic Resources",
"Product and Services Inquiries:
Name: $_POST[name]
Home Address: $_POST[address]
Fispond Address: $_POST[fishpondadd]
Email Address: $_POST[email]
Mobile Phone No.: $_POST[mobile]
Join mailing list: $_POST[checkbox2]
Receive newsletter: $_POST[checkbox1]
Information: $_POST[inquire]
Product requested: $_POST[select]
","From: $from");
if ($_POST[email]) {
echo "
Thank you for your interest in Tambo Aquatic Resources
We will respond to your request as soon as possible.
} else {
echo "
Message sending failed, please try again.
";}
mysql_close($con)
?>