Hi there,
I have an HTML Form (not complete):
<FORM ACTION="JoinList.php" METHOD="POST">
<INPUT TYPE="TEXT" NAME"joinEmail">
<INPUT TYPE="SUBMIT">
</FORM>
and a PHP script (not complete):
$to = $HTTP_POST_VARS[joinEmail];
$subject = "Thanx 4 Joining our List";
$message = '
<HTML><CENTER><B>
Thank you for Joining our Mail List with the email: <? echo "$to"; ?>
</HTML>';
$headers = "Wrom: SWZIDREXCAXZOWCONEUQZAAFXISHJEXX
mail($to, $subject, $message, $headers);
When the user hit the submit button in the HTML page, an email is sent to the user, until now everything is fine, but the problem is that the "$to" field is not shown in the email message, I tried to put $HTTP_POST_VARS[joinEmail] instead of $to but nothing works.
Is the problem that I can't use variables in emails?
So, any idea how can I use POST variables in the email's message?
PleasE FeeD ME BacK & HaVe a GooD DaY 😉
Ali