Yeah -

<a href="page.php?lang=en">

then access the variable in page.php -
$_GET['lang'] == "en";

You could then store the language variable in a cookie, session or just pass
it from page to page by calling each page with "page.php?lang=xx".

Craig Roberts

"Kalle Saarinen" <[EMAIL PROTECTED]> wrote in message
> Hello,
> I was wondering is it possible to set a variable value with html link?
> I would like to have link button in my page that changes the language. I
> thought to set $lang variable with the button and later use it to
> what to fetch from the database.
> What wound be the smartest solution?
> Thanks
> -Kalle

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to