trying to create a script that will redirect user to a new webpage based on the user's browser preference.


dont know if this script is right is the write way to write one


<? php

header ('location: http://www.yahoo.com/' http://www.msn.com/' http://www.ask.com/' ) ;

? >

or

<?

header ( "location: $_post [location]"); exit;

?>

thanks

What do you mean by browser preference? The browser they are currently using or some input they supply?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.