Jump to content

[SOLVED] Help with IF Statement


refiking

Recommended Posts

I am trying to redirect all non-IE users to an ieonly.php page in my directory.  That part works great, but now my index page is blank.  How can I code this?

 

$br = strtolower($_SERVER['HTTP_USER_AGENT']); // what browser they use.

if(ereg("msie", $br)) {
} else {
header("Location: ieonly.php");
}
exit();

Link to comment
https://forums.phpfreaks.com/topic/88390-solved-help-with-if-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.