Feedback form with mail function....
| From: | Deependra b. Tandukar | Date: | Tue, 22 Apr 2003 04:35:36 +0000 |
| Subject: | Feedback form with mail function.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144759@lists.php.net to get a copy of this message | ||
Dear all ,
I have a web form given below, processed by the PHP code which also given below. Virtually it seems to me, it should work, but I never get any feedback form, I have tried several times but no success.
Anybody any idea? What do I need to do to make the code work...
<html>
<form action="http://www.icimod.org.np/publications/tpoints/tpointsE.php" method="POST" name="tpoints">
<table>
<tr>
<td>
First Name
</td>
<td>
<input type="text" name="fname" size="20">
</td>
</tr>
<tr>
<td>
Email
</td>
<td>
<input type="text" name="email" size="20">
</td>
</tr>
</table>
</form>
</html>
PHP
<?php
$msg = "$fname";
$sendto = "dtandukar@icimod.org.np";
$sub = "Feedback...";
$mailheaders = "From: My Site";
$mailheaders .= "Reply-To: $email";
mail($sendto,$sub,$msg, $mailheaders);
?>
Best regards,
DT