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
news:[EMAIL PROTECTED]
> 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
detedmine
> what to fetch from the database.
>
> What wound be the smartest solution?
>
> Thanks
>
> -Kalle
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to