Re: Why not working

From: Date: Mon, 20 May 2002 03:23:35 +0000
Subject: Re: Why not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98410@lists.php.net to get a copy of this message
In article <001c01c1ff9a$0e4369b0$b700a8c0@yoda>, dean@gisites.com says... > This should send me an e-mail with the form info then send a thank you > letter to the subscriber. > It does the first, but not second, any ideas? > > > <? > $MailToAddress = "sendmeform@email.com"; > $MailSubject = "Joine-mail 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"); > ?> > > > > <?php > if(isset($Submit)) { > $subject = "Thank You"; > $MailFromAddress = "mye-mail@here.com"; > > while(list($key, $value) = each($HTTP_POST_VARS)) { > $$key = $value; > $msg .= "$key = $value\n"; > } Probably the first thing you could check is whether $Submit is set; there seems to be nothing there that would do so. -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#98410) next »