Ok, weird topic, but here's the lowdown:
I have a page with a pulldown box. ATM, it uses JS (javascript) and when an option is selected it goes off to a URL depending on the pulldown list's value.
But I've spent a while updating the stuff without rememebring PHP is serverside not clientside.
The problem is now this: all my pages check to see if a variable (eg $x) exists and if not make it equal something default (eg 1). They then call a stylesheet depending on what X is. Thus I have the same page using different styles depending on what the variable is as you can imagine. This works fine but the problem is I want the pulldown box to change the variable and then reload the pages (it's a frames layout) or to at least change the variable and goto a set (perhaps) url. But atm I don't see how I can change the PHP variable it checks at the start of every page when the pulldown box is changed. Please help! I'm sure there's just a way of thinking about it I've missed as usual. Thanks!!
I have a page with a pulldown box. ATM, it uses JS (javascript) and when an option is selected it goes off to a URL depending on the pulldown list's value.
But I've spent a while updating the stuff without rememebring PHP is serverside not clientside.
The problem is now this: all my pages check to see if a variable (eg $x) exists and if not make it equal something default (eg 1). They then call a stylesheet depending on what X is. Thus I have the same page using different styles depending on what the variable is as you can imagine. This works fine but the problem is I want the pulldown box to change the variable and then reload the pages (it's a frames layout) or to at least change the variable and goto a set (perhaps) url. But atm I don't see how I can change the PHP variable it checks at the start of every page when the pulldown box is changed. Please help! I'm sure there's just a way of thinking about it I've missed as usual. Thanks!!