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 = '[EMAIL PROTECTED]';
  $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 = '[EMAIL PROTECTED]';  // 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  } ?>


Reply via email to