It's probably best to just show the simple code first:
<?
mail( "dave@rjscollects.com", "Feedback Form8", $POST['theirname'], $POST['theiremail'], $_POST['theirmessage'] );
header( "Location: http://www.rjscollects.com/thankyou.html" );
?>
<form method="post" action="info.php">
<font face="Arial" size="2" color="#CCCC00">Your name?</font>
<input type="text" name="theirname" size="35"><br>
<font face="Arial" size="2" color="#CCCC00">Your E-mail or Phone number?</font>
<input type="text" name="theiremail" size="22"><br>
<textarea name="theirmessage" rows=6 cols=35></textarea>
<hr>
<input type="submit" value="Send to RJS">
<input type="reset" value="Clear">
</td></tr>
</form>
I have a second computer that I'm using to test my html/php script. When I fill out the three inputs on the form (name, email, & message) and hit submit, the mail is sent and my thank you page shows up no problem.
On the other end, when I open the email (for the form I just submitted) in Outlook Express, the From: is the default user name of the sender, not the value of "theirname" - instead, what was entered in the "theirname" field shows up in the message area on the email.
The fields "theiremail" and "theirmessage" are out floating in cyberspace somewhere.
I've looked at the manual and a number of examples, but I can't make hide nor hair of the thing.
This form only has three entries...and I've got another form to do with lots of entries! If I can't even get three to show up, I have no clue on getting 15-20 fields to send properly.
(This was sooooo much easier to do when I just used a html 'mailto:'. But No. My boss wants a "thank you" page. Argh!)
Thanks for any help...Lord knows I need it!