Re: contant /
| From: | Dan Joseph | Date: | Thu, 08 Apr 2010 16:32:43 +0000 |
| Subject: | Re: contant / | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-303914@lists.php.net to get a copy of this message | ||
On Thu, Apr 8, 2010 at 12:26 PM, Jack <JackListMail@gmail.com> wrote:
> I get a couple of errors like this one for undefined variable:
>
> PHP Notice: Undefined variable: s_company_name
>
> And this one for undefined contstant
>
> PHP Notice: Use of undefined constant account_type - assumed
> 'account_type'
>
f_put_cookie($auth[user_name],$auth[user_email],$auth[account_type],$auth[co
mpany_name]);
That's your culprit. You'll need quotes around those. $auth["username"],
"user_email", "account_type", "company_name"
Otherwise, it thinks they are constants that haven't been defined:
php.net/define
--
-Dan Joseph
www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo
Code "NEWTHINGS" for 10% off initial order
http://www.facebook.com/canishosting
http://www.facebook.com/originalpoetry