The
Following Code is the actual form where the input can be typed. It's a
great way to have people contact you from your site without having to
open up an email client or having to log into an email service to email
you.
Form
Mailer
The Following Code is the actual form where the input can be
typed.
| CODE |
<form method="post">
<b>Your Email:</b> <input
type="text" name="email"
size="45"> <br>
<b>Subject:</b> <input
type="text" name="subject"
size="45"> <br>
<b>Comments:</b> <textarea
name="comments" cols="20"></TEXTAREA>
<br>
<input type="submit"
name="submit" value="Submit">
<input type="reset"
name="reset" value="Reset">
</form>
|
The Next code tells the form what to do.
| CODE |
<?
// Replace x with your email address!
if($submit)
{
mail("name@host.com", "$subject",
"$email", "$comments");
}?> |
|