well, you just make your form in HTML like this:
Code:<form action="email.php" method="post">
Your name: <input type="text" name="name" size="40"><br>
Your email address: <input type=text name="email" size=40><br>
Your feedback:
<textarea name="feedback" rows="5" cols="30">
</textarea>
<br>
<input type="submit" value="Send feedback">
</form>
</body>
</html>
and email.php is like this:
Code:<?
$to = "
[email protected]";
$subject = "Hello!";
$message = "Name: ".$name."\nEmail: ".$email."\nComments: \n".$feedback."\n";
$from = "
[email protected]";
mail($to, $subject, $message, $from);
?>
(notice that the variables used in PHP are the names you gave the inputs in the HTML
hope that helps
(*edited cos i accidentially deleted the <form> tag...whoops!)
Enter your message below
Sign in or Join us (it's free).