Forum Moderators: coopster
if (cookie >82 and is NOT IE) print $secret82
Right now this looks like it will print the variable (with the HTML code assigned to it) if the cookie is equal to or greater to 82 and the browser IS Internet explorer. I figure this shouldn't be too hard but I've been messing with it for about an hour now scratching me head. :)
if ($_COOKIE['counter']>82 ¦¦ preg_match("/MSIE/i", "$useragent")) print $secret82;
- John
PS - Oddly enough the regular script executes the print command without using { or } if anyone could explain that oddity by any chance? Thanks!
if ($_COOKIE['counter']>82 && ([url=http://www.php.net/strpos]strpos[/url]($useragent,"MSIE")=== FALSE)) print $secret82;
>>if anyone could explain that oddity by any chance?
If there is only one line after the if condition, there is no need for braces. More here [php.net]
Good luck!