Certainly not a PHP wizard here. Having a little issue with this simple email form.
http://www.kidsoffchemicals.com/contacts.htm
It was placed in an IFRAME by the previous designer and I decided to just roll with it as the client doesn't want to have me do too much work on it right now. Anyways, I think I've done something wrong in the form. Here is the form HTML and PHP.
Any help greatly appreciated. Thanks!
CODE
<table width="350px" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td><form name="form1" method="post" action="send_contact.php">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td>Name</td>
<td>:</td>
<td><input name="name" type="text" id="name" size="35"></td>
</tr>
<tr>
<td>Email</td>
<td>:</td>
<td><input name="customer_mail" type="text" id="customer_mail" size="35"></td>
</tr>
<tr>
<td width="16%">Phone</td>
<td width="2%">:</td>
<td width="82%"><input name="phone" type="text" id="phone" size="35"></td>
</tr>
<tr>
<td>Message</td>
<td>:</td>
<td><textarea name="message" cols="32" rows="4" id="message"></textarea></td>
</tr>
<tr>
<td height="27"> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table>
</form></td>
</tr>
</table>
Here is the PHP
CODE
<?php
// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $name <$mail_from>";
// Contact phone
$phone ="$phone";
// Message
$message="$message";
// Enter your email address
$to ='mickey@i9creative.com';
$send_contact=mail($to,$phone,$message,$header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>
