First off, I'm a complete newbie when it comes to PHP, but I'm trying to teach myself, and it's been slow going... but here's my dilemma:
I'm trying to set up a simple mail form to send an email w/ the user's info.
The form I will be sending is at http://www.elriosf.com/Pages/frames/mailinglistframe.htm
but I've initially tried a simple test form to make sure I was doing it right.... and I'm not.
The simple test form looks like this:
<HEAD>
<TITLE> El Rio Mailing List</TITLE>
</HEAD>
<BODY>
<FORM method = "POST" action="do_sendform.php3">
<P>Your Name:<br>
<P>First
<INPUT type= "text" name="first_name" size=30><br>
Last
<INPUT type= "text" name="last_name" size=30>
</p>
<P> E-mail Address:<br>
<INPUT type="text" name="sender_email" size=30>
</p>
<P> Message: <br>
<textarea name="message" cols=30 rows=5></textarea>
</p>
<INPUT type="submit" value="Send This Form">
</FORM>
</BODY>
The PHP txt looks like this:
<?php_track_vars?>
<?php
$msg="Sender First Name:\t$first_name\n";
$msg.="Sender Last Name"\t$last_name\n";
$msg.="Sender E-Mail\t$sender_email\n";
$msg.="Message:\t$message\n\n";
$recipient="robertellis@telocity.com";
$subject="Web Site Feedback";
$mailheaders="From: My Web Site <>\n";
$mailheaders.="Reply-To: $sender_email\n\n";
mail ($recipient, $subject, $msg, $mailheaders);
echo "<HEAD><TITLE> Form
Sent!</TITLE></HEAD><BODY>";
echo"<H1 align=center> Thank you, $first_name</H1>";
echo"<P align=center> Check your mail for upcoming events.</P>";
echo"</BODY>";
?>
I've posted them both to my server, and nothing works. I put them both in the same folder, and it didn't work. When that didn't work I put the PHP file in the cgi.bin and that didn't work.
I'm sure there's a simple answer to this, or something obvious I'm missing.
I'd appreciate any help.
Thanks