well, i have created a PHP feedback form that is located here... http://www.eatarock.com/contact.htm
here is the code i am using for the form:
<form method="post" action="feedback.php">
Name: <input name=”name” type=”text” /><br />
Email: <input name="email" type="text" size="25" /><br />
Comments:<br />
<textarea name="comments" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
that is located in contact.htm..... now here is the code i am using for feedback.php:
<?php
$msg = "Name:t$namen";
$msg .= "Email:t$emailn";
$msg .= "Comments:t$commentsn";
$recipient = "[email protected]";
$subject = "New Feedback from my site";
$mailheaders = "From:$emailn";
$mailheaders .= "Reply-To:$emailnn";
mail($recipient, $subject, $msg, $mailheaders);
header("Location: http://www.eatarock.com/thankyou.htm");
?>
for some reason whenever you press submit on the contact form it takes you to feedback.php and says page cannot be displayed.... It is supposed to redirect to thankyou.htm...... I have no clue as to why it is doing this
Does anyone know how to fix it?
B.T.W. i am hosting on 1and1.com with the MShosting package that 4.99/mo if that makes a difference
-Thanks in advance
Mike
here is the code i am using for the form:
<form method="post" action="feedback.php">
Name: <input name=”name” type=”text” /><br />
Email: <input name="email" type="text" size="25" /><br />
Comments:<br />
<textarea name="comments" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
that is located in contact.htm..... now here is the code i am using for feedback.php:
<?php
$msg = "Name:t$namen";
$msg .= "Email:t$emailn";
$msg .= "Comments:t$commentsn";
$recipient = "[email protected]";
$subject = "New Feedback from my site";
$mailheaders = "From:$emailn";
$mailheaders .= "Reply-To:$emailnn";
mail($recipient, $subject, $msg, $mailheaders);
header("Location: http://www.eatarock.com/thankyou.htm");
?>
for some reason whenever you press submit on the contact form it takes you to feedback.php and says page cannot be displayed.... It is supposed to redirect to thankyou.htm...... I have no clue as to why it is doing this
Does anyone know how to fix it?
B.T.W. i am hosting on 1and1.com with the MShosting package that 4.99/mo if that makes a difference
-Thanks in advance
Mike
















