Hi folks,
Let's say that I have 2 constants
DEFINE('DESKTOP_URL_en', http://www.website.com/index.php?page=home;);
DEFINE('DESKTOP_URL_fr', http://www.website.com/index.php?page=accueil;);
and I would like to populate the value of an href with them depending
on the
On 10/12/11 11:51, Marc Guay marc.g...@gmail.com wrote:
Let's say that I have 2 constants
DEFINE('DESKTOP_URL_en', http://www.website.com/index.php?page=home;);
DEFINE('DESKTOP_URL_fr',
http://www.website.com/index.php?page=accueil;);
and I would like to populate the value of an href with them
$var = constant('DESKTOP_URL_' . $_SESSION['lang']);
Very nice, thank you.
Marc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo