Re: Why am I getting this error?

From: Date: Wed, 10 Oct 2001 14:09:01 +0000
Subject: Re: Why am I getting this error?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70663@lists.php.net to get a copy of this message
$mailToUsers[] = "\"$toUserInfo[name]\" <$toUserInfo[]email>";
Should there not be something in the brackets above? i.e. $toUserInfo[]email doesn't look pleasent... at least to me :) Thomas.
if( "$fromUserInfo[trades_notification]" ) { $mailToUsers[] = "\"$fromUserInfo[name]\" <$fromUserInfo[email]>"; } When I try to run my script, I get the following error: Parse error: parse error, expecting T_STRING' or T_VARIABLE' or `T_NUM _STRING' in ./parse_email.php on line 126 Line 126 is this one: if( "$toUserInfo[trades_notification]" ) { however, even if I change it to if( 1 == 1 ) { I get the same error. What's going on?!? Chris


« previous php.general (#70663) next »