help with feedback form . .
Posted: Wed May 28, 2008 10:18 am
Hey guys, really sorry to ask as I'm sure its an irritatingly frequent query but I'm struggling with a feedback form.
I want a feedback form that'll have 4 or 5 fields, one to be text area; and have all info emailed to an address.
I've got an index.html:
and sendmail.php:
Been stuck with this all day, and just not knowledgeable enough to figure it out. Any help gratefully received.
I want a feedback form that'll have 4 or 5 fields, one to be text area; and have all info emailed to an address.
I've got an index.html:
Code: Select all
<form method="post" action="sendmail.php">
Name: <input name="name" type="text" /> <br />
Email Address: <input name="email" type="text" /><br />
ISS Username (if known): <input name="username" type="text" /><br />
Telephone Number: <input name="phone" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>and sendmail.php:
Code: Select all
<?php
$email = $_REQUEST['email'] ;
$name = $_REQUEST['name'] ;
$username = $_REQUEST['username'] ;
$phone = $_REQUEST['phone'] ;
$message = $_REQUEST['message'] ;
mail( "callmecheez@gmail.com", "New helpdesk email",
"From: $name <$email>" );
"$message\nCustomer Username:$username\n".
"$message\nCustomer Contact Number:$phone\n".
"$message\nDescription: $message\n".
header( "Location: http://www.leeds.ac.uk/iss/contact_test/thankyou.html" );
?>Been stuck with this all day, and just not knowledgeable enough to figure it out. Any help gratefully received.

