RE: [PHP] Newbie getting close, form submission
| From: | Dean Ouellette | Date: | Mon, 22 Jul 2002 15:44:07 +0000 |
| Subject: | RE: [PHP] Newbie getting close, form submission | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108875@lists.php.net to get a copy of this message | ||
Last line
Same error for this message
Parse error: parse error, expecting
STRING' or NUM_STRING' or
`'$'' in
/www/docs/www.electjoemarine.com/email.php on line 82
Was
$Message .= "\n\n{$HTTP_POST_VARS['Footer']}";
Tried this, but same message
$Message .= "\n\n$HTTP_POST_VARS['Footer']";
-----Original Message-----
From: Matt Schroebel [mailto:MSchroebel@hsus.org]
Sent: Monday, July 22, 2002 11:21 AM
To: 'Dean Ouellette'; Matt Schroebel; php-general@lists.php.net
Subject: RE: [PHP] Newbie getting close, form submission
> From: Dean Ouellette [mailto:dean@ouellette.ws]
> Sent: Monday, July 22, 2002 10:56 AM
> Subject: RE: [PHP] Newbie getting close, form submission
>
> $Message = $HTTP_POST_VARS['Message']; // should single quote
> associative array indexes
> if (isset($HTTP_POST_VARS['Header'])) {
> <<<<This is 78>>>> $Message =
> "{$HTTP_POST_VARS['Header']}\n\n$Message";
Oops, PHP 3.0 may need:
$Message = $HTTP_POST_VARS['Header'] . "\n\n$Message";
> }