I am working with a simple feed back form.
Here, when user will submit their feedback it will store in a define mail account.
But after submitting the form no mail is storing the that mail account.
My code is as follows:
<html>
<head>
<title>Feedback</title>
</head>
<body>
<?
if(isset($submit)){
$to = "username@yahoo.com"; // Enter YOUR email here
$subject = "Feedback for the Website!";
$body = "A test for feedback on the site!\n";
$body .= "Their feedback is:\n\n";
$body .= $feedback;
mail($to, $subject, $body);
print("<h2>Thanks for your feedback!</h2>");
} else {
?>
<form action="<?php echo $PHP_SELF; ?>" method="POST">
<h2>Please Send us your Feedback</h2>
<textarea cols=35 rows=15 name="feedback">
</textarea>
<br>
<input type="submit" name="submit" value="Submit">
</form>
<?
}
?>
</body>
</html>
Please help me!!!
This post has been edited by chitara: 06 July 2006 - 04:03 AM

New Topic/Question
Reply



MultiQuote



|