cuemasterfl
Supreme [H]ardness
- Joined
- Jul 5, 2001
- Messages
- 4,181
I have a contact us page which is no longer working properly, for some odd reason. It's been a while since I made this, but now it needs to work.
First, here's the PHP code:
Secondly, here's the form code:
When the information is submitted, the email arrives but it shows ,,,,, and none of the information. I'm not very good with PHP and I can't see the problem. Many thanks for any help you can provide.
First, here's the PHP code:
Code:
<html>
<head>
<?php
// Contact subject
$subject ="$subject";
// Details
$message="$subject, $detail, $name, $phone, $customer_mail";
// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $name <$mail_from>";
// Enter your email address
$to ='[email protected]';
$send_contact=mail($to,$subject,$message,$header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "Your message has been sent to Customer Service Online, LLC.<br><br>Please allow 24 hours for a reply.<br><br>Thank you!";
}
else {
echo "ERROR";
}
?>
<p>
<a href="http://www.csollc.net">Click here</a> to return to the home page.
</p>
</head>
Secondly, here's the form code:
Code:
<form name="form1" method="post" action="send_contact.php">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td width="16%">Subject:</td>
<td width="2%"> </td>
<td width="82%"><input name="subject" type="text" id="subject" size="50"></td>
</tr>
<tr>
<td>Detail:</td>
<td> </td>
<td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td>
</tr>
<tr>
<td>Name:</td>
<td> </td>
<td><input name="name" type="text" id="name" size="50"></td>
</tr>
<tr>
<td>Phone:</td>
<td> </td>
<td><input name="phone" type="text" id="phone" size="50"></td>
</tr>
<tr>
<td>Email:</td>
<td> </td>
<td><input name="customer_mail" type="text" id="customer_mail" size="50"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table>
</form>
When the information is submitted, the email arrives but it shows ,,,,, and none of the information. I'm not very good with PHP and I can't see the problem. Many thanks for any help you can provide.