Error on e-mail form handler
Posted: Fri Jun 17, 2005 8:41 pm
Hello,
I am getting an error on my email form handler. The error states:
Parse error: parse error, unexpected T_IF in /hsphere/local/home/bruceg/inspired-evolution.com/Thankyou.php on line 34
here is the code:
and the page for the form is:
http://www.inspired-evolution.com/contact.php
anyone see what's going on??
I am getting an error on my email form handler. The error states:
Parse error: parse error, unexpected T_IF in /hsphere/local/home/bruceg/inspired-evolution.com/Thankyou.php on line 34
here is the code:
Code: Select all
<?php
$name=$_POST['name'];
$company=$_POST['company'];
$phone=$_POST['phone'];
$email=$_POST['email'];
$URL=$_POST['URL'];
$Contact_Preference=$_POST['Contact_Preference'];
$message=$_POST['Message'];
$formsent=mail('webguync@gmail.com',
'There has been a disturbance in the force',
"Request from:$name\r\n
Company name:$company\r\n
Phone Number:$phone\r\n
Email Address:$email\r\n
URL:$URL\r\n
Please Contact me via:$Contact_Preference\r\n
I wish to request the following additional information:$message"
if ($formsent {
echo "<p> Hello, $name. We have received your request for additional information, and will try to respond within 24 hours. Thanks for visiting inspired-evolution.com!;
} else (
echo "I'm sorry there seems to be a problem with your form. Please check to make sure all of the required fields have been filled out and try again.";</p>
)
?>http://www.inspired-evolution.com/contact.php
anyone see what's going on??