I have an htm file with a form which POSTs collected data to a sendmail.php file.
The sendmail executes and sends an email, but none of the variables are included. Variables are also not included on my PRINT statements.
Here is the most recent iteration of my sendmail.php:
[FONT=Courier New]<?PHP
print("<HTML><BODY><P>");
$nameid = $GET['nameid'] ;
print("$nameid");
$fromid = $GET['fromid'] ;
$telid = $GET['telid'] ;
$subject = $GET['subject'] ;
$txtMsg = $_GET['txtMsg'] ;
$txtMsg = wordwrap($txtMsg,70);
$recipient = "DummyNameForThisPost@sample.com";
$message = "Web Contact from ResetTheClock Site\n";
$message .= "Subject: $subject\n";
$message .= "Contact Name: $nameid\n";
$message .= "Contact eMail: $fromid\n";
$message .= "Contact Telephone: $telid\n";
$message .= "Message: $txtMsg";
mail($recipient,"$subject",$message,$fromid);
print("<HTML><BODY><P>Thank you, $nameid <P>Your message below has been sent to the staff at Reset the Clock.");
print("<P>Message: $txtMsg");
print("</BODY></HTML>");
?>[/FONT]
And this is the HTM form that collects and POSTs data to sendmail:
[FONT=Courier New]<form method="post" action="sendmail.php" id="form1" name="form1">
<table class="hTable" style="LEFT: 0px; TOP: 62px">
<tr>
<td><font class=text_highlight>Your Name: </font></td>
<td><input name="nameid" id="nameid" style="WIDTH: 278px; HEIGHT: 22px"></td></tr>
<tr>
<td><font class=text_highlight>Your email address: </font></td>
<td><input name="fromid" id="fromid" style="WIDTH: 278px; HEIGHT: 22px"></td></tr>
<tr>
<td><font class=text_highlight>Your telephone number: </font></td>
<td><input name="telid" id="telid" style="WIDTH: 278px; HEIGHT: 22px"></td></tr>
<tr>
<td><font class=text_highlight>Subject: </font></td>
<td><input value="ResetTheClock Web Contact (overtype to change)" name="subject" id="subject" style="WIDTH: 277px; HEIGHT: 22px"></td></tr>
<tr>
<td><font class=text_highlight>Your message: </font></td>
<td><TEXTAREA id=txtMsg name=txtMsg rows=7 cols=60 value></TEXTAREA></td>
<tr><td colspan="2"><center><input type="submit" value="Send Message - TESTING ONLY" id="submit1" name="submit1"></center>
</td></tr>
</table>
</form>[/FONT]
Thanks in advance,
Tony