Jump to content

browser detect if else help please?? :(


mattchris18

Recommended Posts

<?php
if ( ( browser_detection( 'browser' ) == 'ie' ) 

{

redirect code here

} else {

display normal here

}

?>

 

Above i am trying to make it so my web page finds out if the visitor is using Internet explorer (any version), and if they are using internet explorer i want it to redirect them to another page on my website...    But if they are using any other browser e.g firefox or mozilla...  i want it to display the page as normal :S

 

My above code didnt work, i am a total noobie with PHP any help from you guys will be very much appriciated!!!

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/98453-browser-detect-if-else-help-please/
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.