I want to show simple html code say "Hello New Member" when the user is using IE and is browsing my website for the first time or second time, So I need to set a cookie as well. Any help will be highly appreciated. Regards
<?php if (!isset($_COOKIE['ie']) AND preg_match('/MSIE/i', $_SERVER['HTTP_USER_AGENT'])) { setcookie('ie', 1, strtotime('+1 Week')); ?> HTML Here <?php } ?> PHP:
Nico to the resuce again Looks perfect to me, will check in the night... In the past as well I had asked you Nico (and again asking you as than I had not got reply from you), do you work as a freelancer on php frameworks ? I have some interesting prepositions for you...