The reason it worked, is that you were setting the value of $HTTP_USER_AGENT
to "Mozilla" by using a single =

That operation was succesful, so the result was true.
Therefore the if() clause was being executed.

On 4/3/01 6:15 PM, "Wade DeWerff" <[EMAIL PROTECTED]> wrote:

> ugh, ok, I was without php support for a bit, ok the script works, except
> that it doesnt work...it prints even when browser is IE.
> 
> 
> -----Original Message-----
> From: Jason Murray <[EMAIL PROTECTED]>
> To: Jason Murray <[EMAIL PROTECTED]>; 'WD'
> <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Tuesday, April 03, 2001 7:54 PM
> Subject: RE: [PHP] help with parse
> 
> 
>>>> <?php
>>>> if ($HTTP_USER_AGENT = "Mozilla")
>>> 
>>>                        ^ This needs to be "=="
>> 
>> Actually, it needs to be " if(substr($HTTP_USER_AGENT, "Mozilla"))".
>> 
>> *slap.self*
>> 
>> Jason
>> 
>> --
>> Jason Murray
>> [EMAIL PROTECTED]
>> Web Design Team, Melbourne IT
>> Fetch the comfy chair!
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to