Newbie getting close, form submission

From: Date: Mon, 22 Jul 2002 13:42:42 +0000
Subject: Newbie getting close, form submission
Groups: php.general 
Request: Send a blank email to php-general+get-108856@lists.php.net to get a copy of this message
I am a complete newbie, search the web for examples right now and use them. The host has php 3.0 Having problems with for submission Right now, no error messages, but does not actually send the email. Ideas? <? $MailToAddress = "email@myaddress.com"; $MailSubject = "Get Involved List"; if (!$MailFromAddress) { $MailFromAddress = "$email"; } $Header = ""; $Footer = ""; ?> <? if (!is_array($HTTP_POST_VARS)) return; reset($HTTP_POST_VARS); while(list($key, $val) = each($HTTP_POST_VARS)) { $GLOBALS[$key] = $val; $val=stripslashes($val); $Message .= "$key = $val\n"; } if ($Header) { $Message = $Header."\n\n".$Message; } if ($Footer) { $Message .= "\n\n".$Footer; } mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress"); ?>

« previous php.general (#108856) next »