Re: howto set variablevalue with link?

From: Date: Fri, 01 Aug 2003 08:28:22 +0000
Subject: Re: howto set variablevalue with link?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157901@lists.php.net to get a copy of this message
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" <kalles@acte.fi> wrote in message news:001901c35805$e5011500$08cba8c0@kalle... > 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 > > > >

« previous php.general (#157901) next »