All I am trying to do is set up a basic form, to register to a mailing list.
I have Name, e-mail fields only to enter. I have created this in a basic form, a selected Action: action.php, Method: post, and Mulipart/form data
The thank you screen is named just action.php, and file extention is set to .php
This is the HTML code I have pasted into inside body tag:
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "realpartremoved********.co.uk";
$mailsubj = "Register";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
Have I messed something up along the line somewhere? and will it even work with hotmail?
I have Name, e-mail fields only to enter. I have created this in a basic form, a selected Action: action.php, Method: post, and Mulipart/form data
The thank you screen is named just action.php, and file extention is set to .php
This is the HTML code I have pasted into inside body tag:
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "realpartremoved********.co.uk";
$mailsubj = "Register";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
Have I messed something up along the line somewhere? and will it even work with hotmail?
Comment