Hi,

I know the following code displays my page in the language set in the users 
browser.

<?
$lang=substr($HTTP_ACCEPT_LANGUAGE,0,2);
?>

However while I do initially want the page to load in the language of the 
browser setting I also need to be able to allow the user to change the 
language and the above does not allow for this.

Can anyone suggest code samples that might do this and perhaps set a cookie 
to remember the choice for future visits?

I've been dabbling with this a while now and never quite get it right.

All help / advice appreciated as this is new to me.

Cheers,

Gary



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to