I want to do a simple thing, wich is: if someone is browsing my website in internet explorer, then a div of my website must be shown in a form, if not then its shown on another form.
Im trying something simple to test the conditions but its not working. Here's the code
$IE = 0;
echo "<!--[if lte IE 8]>" ;
$IE = 1;
echo "<![endif]-->";
die("IE is: " . " " . $IE);
While using chrome, it always shows IE is 1.
Am i doing something wrong?