Re: Browser Detection another page
| From: | Richard Davey | Date: | Fri, 13 Feb 2004 01:02:14 +0000 |
| Subject: | Re: Browser Detection another page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177559@lists.php.net to get a copy of this message | ||
Hello PETCOL,
Friday, February 13, 2004, 12:57:59 AM, you wrote:
P> I have been able to work out how to detect the browser I'm looking for.
P> Then I need to take the user to another page.
P> if (strstr($HTTP_USER_AGENT,'Windows CE')) {
P> //go to the Windows CE version of the site
P> } else {
P> // go to or Stay on the large version
P> }
if (strstr($HTTP_USER_AGENT, "Windows CE"))
{
Header("Location: http://www.yoursite.dom/ce_page.php");
exit;
}
else
{
Header("Location: http://www.yoursite.dom/another_page.php");
exit;
}
--
Best regards,
Richard mailto:rich@launchcode.co.uk