Passing variables thru a URL
Posted: Sat Jun 15, 2002 11:08 am
http://members.lycos.co.uk/jibfyb/
Select an item in the dropdown menu and you will see the URL change to "http://members.lycos.co.uk/jibfyb/index ... eryouchose".
Now, in that textarea box (which currently says '<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>'...) I have this code:
if($map == cat){ print("Hah!"); } else { print("<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>!"); }
So, choose cat in the dropdown menu.
The textarea box STILL says '<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>'.
How do I make sure $map is seen throughout the page as whatever has been selected in the drop box?
Thanks!
Select an item in the dropdown menu and you will see the URL change to "http://members.lycos.co.uk/jibfyb/index ... eryouchose".
Now, in that textarea box (which currently says '<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>'...) I have this code:
if($map == cat){ print("Hah!"); } else { print("<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>!"); }
So, choose cat in the dropdown menu.
The textarea box STILL says '<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>'.
How do I make sure $map is seen throughout the page as whatever has been selected in the drop box?
Thanks!