View Single Post
Old 02-11-2009, 10:21 AM   #1 (permalink)
amcdonald
No Avatar
 
Name: Andrew
Last Online: 11-21-2009 01:48 PM
iTrader: (104)
Join Date: Feb 2006
Posts: 2,818
DNF$: 554
Location: Canada
Country:


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
amcdonald is offline   Reply With Quote
Sponsored Ads