I have a php script that sends an email to a specified email address:
$headers = array(
'From: emailhidden',
'Content-Type: text/html'
);
$body = array(
'<br><br><br>',
'<h3>Success!</h3><br>',
'<p>Your sign up for My Panda was Successful! you may now sign in using the information provided below.</p>',
'<p><b>Login URL:</b> <a href="http://www.green-panda.com/my-panda.html">http://www.green-panda.com/my-panda.html</a></p>',
'<p><b>Username:</b> echo "$_POST[unique_id]";</p>',
'<p><b>Username:</b>". $POST['unique_id']."</p>',
'<p><b>Password:</b> echo "$_POST[passphrase]";</p>',
'<p>If you ever have any problems with My Panda or have questions, please contact us at: moevans@green-panda.com'
);
mail('emailhidden', 'My Panda Registration', implode("\r\n", $body), implode("\r\n", $headers));
The problem lays right here: <p><b>Username:</b> echo "$_POST[unique_id]";</p>',
and the same with the pass phrase. They display exactly like that and not like what was entered on the form. How do I get them to display what was posted on the form previous to the script? the input field names are same as the post values in the script. Thank you!