ok.now that i've written a code.But the mail is not going to the recipient. Can u tell me why is this.
<?php
// if submitted form process and send mail
if ($REQUEST_METHOD == "POST") {
// just to be safe I strip out HTML tags
$to = strip_tags($to);
$cc = strip_tags($cc);
$sub = strip_tags($sub);
$feedback = strip_tags($feedback);
// set the variables
// replace $me@mysite.com with your email address
$sendto = "xyz@yahoo.com,abc@yahoo.com";
$subject = $sub;
$message = "$feedback";
// send the email
mail($sendto, $subject, $message);
}
?>
<html>
<head>
<title><center><U>SEND MAIL</U></CENTER></title>
</head>
<body bgcolor="#FFFFFF">
<h2><center><U>SEND MAIL</U></CENTER></h2>
<?php
// if submitted form display sent message
if ($REQUEST_METHOD=="POST") {
echo("<p><b>Thank you for your feedback. The following message was sent:</b></p>\n");
echo("<blockquote><pre>\n");
echo("$message");
echo("</pre></blockquote>");
}
// if not display form
else {
?>
<!-- *** START HTML FORM -->
<form action="<?php echo("$script_name"); ?>" METHOD="POST">
<table cellpadding="4" cellspacing="0" border="0">
<tr><td><b>To:</b></td><td><input readonly type="text" name="to" value="xyz@yahoo.com,abc@yahoo.com" size="50"></td></tr>
<tr><td><b>Subject:</b></td><td><input type="text" name="sub" size="50"></td></tr>
<tr><td colspan=2><b>Feedback:</b><br />
<textarea name="feedback" rows="15" cols="80" wrap="physical"></textarea>
</td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="Clear" onclick="clear()">  <input type="submit" value="Send
Feedback"></td></tr>
</table>
</form>
<!-- *** END HTML FORM -->
<?php } ?>
</body>
</html>