You can only redirect to one location. You can have the location be a variable (as in b.b.'s post), but it will be incumbent upon you to write the logic that sets that variable's value. Not knowing what you mean by "based on the user's browser preference", I can't really suggest any specifics.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
<?php
// set location if provided from form, else set it to default page:
$location = (!empty($_POST['location'])) ? $_POST['location'] :
"http://your.site.com/index.php";
// go to that page:
header("Location: $location");
?>
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks