Forum Moderators: coopster
The PHTML page I have looks like this (I deleted all the HTML lines at the top so line 17 is actually line 2 now):
<?
if ($email) {
"
Email:$email
";
//send the mail
/* comments
comments
*/
mail ("myemail@whatever.com", "**Mailing List**", $email, "From: $email\n");
echo "<h4>Thanks...You'll be getting really cool stuff now.<br>
<a href=/originalhtml.html>No place like Home</a></h4>
";
} else {
echo "
<h3>I'm sorry please try again.</h3>
<p><a href=\"javascript:history.back()\">
Click</a></p>
";
}
?>
What the heck am I doing wrong!?!?! This stuff USED TO work! I can't figure it out.
eg,
$form_field = $_POST['form_field'];
or, if you have a version of PHP prior to 4.1,
global $HTTP_POST_VARS;
$form_field = $HTTP_POST_VARS['form_field'];