| Sendmail.php help I am building a simple contact form and wondering if i could get some help.
I want it to be a series of questions
form.html
<form method="post" action="sendmail.php">
Name: <input name="name" type="text" /><br />
Email Address: <input name="email" type="text" /><br />
Question 1:<br />
<textarea name="q1" rows="15" cols="40">
</textarea><br />
Question 2:<br />
<textarea name="q2 rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
what does the sendmail.php have to look like i am having trouble getting this to work. i have tried a few things.
<?php
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$q1 = $_REQUEST['q1'] ;
$q2 = $_REQUEST['q2'] ;
mail( "my@emailaddress.com", "Feedback Form",
$message, "From: $email" );
?>
Thanks in advance |