Re: Updating a GET variable
| From: | Nathan Rixham | Date: | Thu, 11 Nov 2010 16:18:18 +0000 |
| Subject: | Re: Updating a GET variable | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309450@lists.php.net to get a copy of this message | ||
Marc Guay wrote:
So then surely that would be their default language? However, there is of course the case where somebody wants to see both english and german variations of the "same" page, so probabyl a good use-case after all - session to the rescue!So all you need to do, is take a look at $_SERVER['HTTP_ACCEPT_LANGUAGE'] to get a users language preferences.Hi Nathan, Yep, I'm using this var to set the default but I think it's nice to allow the user to override it. Maybe someone using their computer is more comfortable in a different language?