i want it to send my contact information, but it will always give me the wrong report even if i inserted the data correctly.
OUTPUT ALWAYS
===============================================
ERROR!
===============================================
php code:
===========================
Code: Select all
<div align="center">
<h1><strong></p>
</div>
<div align="center">
<div align="center">
<div align="center">
<meta http-equiv="refresh" content="2;url=/home.html">
<?php
$name = $_POST[name];
$email = $_POST[email];
$comment = $_POST[comment];
$msg = "Name: $_POST[name]\n";
$msg.= "Email: $_POST[email]\n";
$msg.= "Phone: $_POST[phone]\n";
$msg.= "Comment/Message:\n";
$msg.= "$_POST[comment]\n<br><br>";
$msg.= "Message recieved: ".date('H:i, jS F');
If($name && $comment && $email){
@mail('truepal20032001@yahoo.c...
echo "Thankyou! You'll be replied soon.</strong></h1>
<p><strong><br />
</strong><br />
<strong></strong></p>
<p>";
echo '<html><h1 align="center"><img src="info/check.jpg"</html>';
}
else{
echo "ERROR!!</strong>"}
?>