?> [/code] This will redirect to whatever value is posted with the name "location". I'm not sure if that's all you're looking for, if not, pleace clarify.
@NogDogApr 02.2006 — #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.
@NogDogApr 02.2006 — #do_redirect.php: [code=php] <?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"); ?> [/code]