trying to display browser specific
this is what i have dont so for but gettting error message.
<?php
$agent = getenv("http_user_agent");
if (preg_match ("/msie/1", "$agent")) {
$result = "you are using microsoft internet explorer."
}
else if (preg_match ("/mozilla/i", "$agent")) {
$result = " you are using netscape.";
}
else {
$result = "you are using $agent";
}
// set location if provided from form, else set it to default page:
$location = (!empty($POST['location'])) ? $POST['location'] :
"http://www.msn.com/";
"http://www.microsoft.com/";
"http://www.expedia.com/";
"http://www.aol.com/";
"http://www.yahoo.com/";
"http://www.netscape.com/";
// go to that page:
header("Location: $location");
?>