Topic: Need help in "Contact Form" code
Hello, I am making a contact form that takes input from the contact form and sends it to you in an email message.
The HTMl is:
<form method="post" action="contactform.php">
Email: <input name="email" type="text" size="30" maxlength="40" /><br />
Message: <br />
<textarea name="message" rows="15" cols="40"></textarea><br />
<input type="submit" />
<input type="reset" name="reset" value="Reset" />
</form>
The PHP of "contactform" is:
<?php
$email = $_REQUEST['email'];
$message = $_REQUEST['message'] ;
mail("email@yahoo.com", "Message from the Website",
$message, "From: $email" );
header( "Location: http://www.website.com/thanks.html" );
?>
I need to add more fields to the form such as Name, Address and Telephone but being this my first experience with PHP I am unable to do that. Upon adding additional fields the form seems to work fine as the form moves to thanks.html page but there is no email sent.
Please help me add multiple fields to the form above that actually sends the data in the email. Thanks!

