Re: howto set variablevalue with link?

From: Date: Fri, 01 Aug 2003 08:28:29 +0000
Subject: Re: howto set variablevalue with link?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157902@lists.php.net to get a copy of this message
yeah you can set a variable this way: http://www.example.com/test.php?var=something This sets the variables $var equal to "something" and you can use them accordingly within your script. If you have safe mode on then you'll need to access the $var variable by using the $_GET array like so: $_GET['var'] Cheers! Rick "What lies behind us and what lies before us are tiny matters compared to what lies within us." - Oliver Wendell Holmes > From: "Kalle Saarinen" <kalles@acte.fi> > Reply-To: "Kalle Saarinen" <kalles@acte.fi> > Date: Fri, 1 Aug 2003 11:21:23 +0300 > To: <php-general@lists.php.net> > Subject: [PHP] howto set variablevalue with link? > > 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 >

« previous php.general (#157902) next »