I'm new to PHP and I am trying to get a redirection to work based on if the user has Firefox or Internet Explorer. So far I have:
<?php
$browser = get_browser( null, true )
if( $browser['browser'] == 'Firefox' )
{
header('location: ff.htm');
}
else
{
header('location: ie.htm');
?>
But upon loading it, the redirection won't happen. The host I have uses .php4, don't know if it makes a difference. Any help is greatly appreciated!





Bookmarks