For some reason I'm having trouble getting a simple php form to mail me some data. Here is what I was using but have since been told that it isn't practical and needs updating:
Does anyone have any suggestions?PHP Code:<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "my.email@myhost.com";
$mailsubj = "Title";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Data received:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
</script>
++ don't be put off by my lack of thanks - I don't know how to give it// but thanks anyway



Reply With Quote


Bookmarks