I have installed teh following form script and works BUT i want it to send me the senders email adress and name Where do i add it in the script?? I think it is in this line and have tried to add but if i add it will not work or maybe i a wrong

// Email that gets sent to you.
mail($your_email, $sub, $contact_msg, "From: $name < $email >");



THXS STEVE
NEWBIE


<?php

// Script Name: PHP Contact Mailer

// Set page variables.
$title = "Contact Me";
$back = "";
$bg = '000000';
$text = 'ffffff';
$link = 'ffffff';
$vlink = 'ffffff';
$trans = 'spinoutin';
$btntag = 'text=000070 insetselection';
$txtbxtag = 'bgcolor=ffffff text=000070 cursor=ff autoactivate nohighlight';

// Remove < and > from the email message.
$msg = str_replace("<","",$msg);
$msg = str_replace(">","",$msg);

// Set email variables.
$your_email = 'webmaster@YourDomain.com';
$your_name = 'Webmaster';
$your_link = 'http://xxxxx.com';
$confirm_sub = 'Your Message Was Received';

$confirm_msg = "<html>
<body>
Hi $name,
<p>
Thank you for your email message regarding the subject: $sub.
<br>
I will respond to it as quickly as I can.
<p>
Thanks again,
<br>
$your_name
<p>
<a href=$your_link>$your_link</a>
</body>
</html>";

$contact_msg = "<html>
<body>
$msg
</body>
</html>";

// Begin the sendmail routine.
if ($send) {
if (!$name || !$email || substr_count($email, '@') < 1 ||
substr_count($email, '.') < 1 || !$sub || !$msg) {
print <<<EOF
<html>
<title>Error!</title>
<body background="$back" bgcolor="$bg" text=$text link=$link
vlink=$vlink transition=$trans fontsize=medium>
<center>
<br><br>
<font s=7 c=f0><b>
Error!</b></font>
<p>
Please go back and correct the errors listed below:
<p>
<table>
<tr><td>
<ul>
EOF;

if (!$name) {
print "<li>Your name is missing!<br>"; }
if (!$email || substr_count($email, '@') < 1 || substr_count($email, '.') < 1) {
print "<li>Your email is missing or invalid!<br>"; }
if (!$sub) {
print "<li>The email subject is missing!<br>"; }
if (!$msg) {
print "<li>The email message is missing!";
}
print <<<EOF
</ul>
</table>
<p>
<a href="javascript:history.back()//">Back</a>
<br><br><br><br>
</center>
</body>
</html>
EOF;
}
else {

// Email that gets sent to you.
mail($your_email, $sub, $contact_msg, "From: $name < $email >");

// Email that gets sent to them.
mail($email, $confirm_sub, $confirm_msg, "From: $your_email");

// Print the thank you page.
print <<<EOF
<html>
<head><title>Message Sent</title>
<script>
setTimeout('history.go(-2)', 7000);
</script>
</head>
<body background="$back" bgcolor="$bg" text=$text link=$link
vlink=$vlink transition=$trans fontsize=medium>
<center>
<br><br><br>
<font size=7><b>
Your Message Was Sent.</b></font>
<p>
Thank You $name,
<br>
You will receive a confirmation email momentarily.
</center>
</body>
</html>
EOF;
}
}
else {

// Print the contact form page.
print <<<EOF
<html>
<head><title>$title</title></head>
<body background="$back" bgcolor="$bg" text=$text link=$link
vlink=$vlink transition=$trans fontsize=medium>
<center>
<br><br>
<font size=7><b>
$title</b></font>
<br><br><br>
<form method=post>
<table>
<tr><td>
Name:
<td>
<input name=name $txtbxtag size=25 maxlength=20>

<tr><td>
Email:
<td>
<input name=email $txtbxtag size=25 maxlength=50>

<tr><td>
Subject:
<td>
<select name=sub width=240 $btntag>
<option value=""> Choose One
<option value="submit Mild Insults">submit Mild Insults
<option value="submit Mean Insults">submit Mean Insults
<option value="submit Harsh Insults">submit Harsh Insults
<option value="submit Yo Mamma Insults">submit Yo Mamma Insults
<option value="Sugestions or Comment">Sugestions or Comment
<option value="Link exchange request">Link exchange request
<option value="OTHER">OTHER
</select>

<tr><td colspan=2>
Message: <font size=1><i>(500 characters max)</i></font>
<br>
<textarea name=msg rows=4 cols=33 maxlength=500
$txtbxtag></textarea>

<tr><td align=center colspan=2>
<input type=submit name=send $btntag value="Submit Form">
<input type=reset $btntag value="Reset Form">
</table>
</form>
<br><br><br>
<font size=2>
<a href=http://xxxx.com/pages/>[- BACK -]</a></font>
<br><br>
<font size=2>
</font>
<br><br>
</center>
</body>
</html>
EOF;
}

?>