I'm fairly new to php so don't laugh if this question is retarded.
I have a small online document ordering form set up. It allows the user to select the document they need copies of and orders them online by sending an email to the person incharge with the order.
It works fine except, the email text looks like this:
Document Ordered:
$_POST[RM Manual]
Document's Tracking Number:
$_POST[SU-POS-001]
Name:
$_POST[Jeff Johnson]
Sender's Email Address:
$_POST[Jeff@blank.com]
Phone Number:
$_POST[5071237896]
Quanity:
$_POST[25]
Cost Center:
$_POST[900100]
Comments or Instructions:
$_POST[none]
I can't get it to email the info without the "$_POST[" in the response. I tried parsing it as many ways as I could think of but it would come back as blank everytime. Here is the code for do_sendfeedback.php:
<?php
$msg = "Document Ordered:
\$POST[$Name]\n\n";
$msg .= "Document's Tracking Number:
\$POST[$Sum]\n\n";
$msg .= "Name:
\$POST[$Name1]\n\n";
$msg .= "Sender's Email Address:
\$POST[$email]\n\n";
$msg .= "Phone Number:
\$POST[$phone]\n\n";
$msg .= "Quanity:
\$POST[$qt]\n\n";
$msg .= "Cost Center:
\$POST[$Cost]\n\n";
$msg .= "Comments or Instructions:
\$POST[$comments]\n\n";
$mailheaders = "From: SU Printed Materials Order Form\n";
$mailheaders .= "Reply-To: $email\n\n";
mail("x@yz.com", "Feedback Form", $msg, $mailheaders);
echo "<H1 align=center>Thank you for your order!</H1>";
echo "<P align=center>Someone will contact you soon regarding your order.</P>";
echo "<P align=center><a href=\"default.php\">Return to the main menu</P>";
?>
Allow attached is a notepad file with the code that feeds into this page. Thank you very much in advance for your help.!