Entry
How can I use an mail() to capture and mail HTML form variables to a mail recepient?
Feb 16th, 2001 10:06
Andres Märtin, Sriram Lakshmanan, Ben Udall,
Source of mail.php
<?
if($REQUEST_METHOD == 'POST'){
mail($mailaddress,$subject,$message,$header);
}
?>
...and your html file:
<form name="myform" method="POST" action="mail.php">
<input type=text name="mailaddress">
<input type=text name="subject">
<input type=text name="message">
<input type=text name="header">
<input type=submit value="Submit form">
</form>