Parse error

From: Date: Mon, 22 Jul 2002 16:32:02 +0000
Subject: Parse error
Groups: php.general 
Request: Send a blank email to php-general+get-108889@lists.php.net to get a copy of this message
PHP 3.0 (I know I don't control it) Getting Parse error on last line of code which is just <html> Here is php code on page <?php If ('GET' == $HTTP_SERVER_VARS['REQUEST_METHOD']) { $MailToAddress = 'dean@gisites.com'; $MailSubject = 'Get Involved List'; ?> <?php exit; } ?> <? If ('POST' == $HTTP_SERVER_VARS['REQUEST_METHOD']) { if (isset($HTTP_POST_VARS['email'])) { $MailFromAddress = $HTTP_POST_VARS['email']; // I'm assuming the vars were posted from a form } else { $MailFromAddress = 'dean@gisites.com'; // vars don't expand in single quotes, but we don't have any here. } $Message = $HTTP_POST_VARS['Message']; // should single quote associative array indexes if (isset($HTTP_POST_VARS['Header'])) { $Message = $HTTP_POST_VARS['Header'] . "\n\n$Message"; // need to wrap arrays in double quotes in {} to parse } if (isset($HTTP_POST_VARS['Footer'])) { $Message .= "\n\n$HTTP_POST_VARS[Footer]"; } mail($MailToAddress,$MailSubject,$Message,$MailFromAddress); // don't have to quote vars on parms } ?>

« previous php.general (#108889) next »