Hiya!
Been playing around with this for a day now and can't seem to find a solution. I'm trying to set a variable for use later in my code when a user clicks on a language flag on my page.
eg. The language flags look basically like this:
<td><a href=\"http://www.xxx.co.uk/hotel.php?hotelid=" . $Hotel_Id . " onclick=" . $LANGUAGE = "en\"><img src=\"english.gif\" border=\"0\"></a></td>
<td><a href=\"http://www.xxx.co.uk/hotel.php?hotelid=" . $Hotel_Id . " onclick=" . $LANGUAGE = "fr\"><img src=\"french.gif\" border=\"0\"></a></td>
I know the onclick=" . $LANGUAGE = "fr\" isn't correct, and i've been trying loads of different variations..... basically, i just want it to say that the language needs to be 'fr', so that later down the same page i can use this in the following line:
<?php
include ("http://www.abc.com/hotels.php3?LANGUAGE=" . $LANGUAGE . "&hotelid=" . $Hotel_Id . ");
?>
I'd be extremely grateful for anyone's ideas on this!
LizzyD