So I've got a page that has a bunch of <select></select> menus on it. When one select menu has an option selected, it loads the contents of another select menu.
It's way less annoying (to me at least) if I use javascript to load the options than if I was to have PHP refresh the page each time, but of course not everyone has javascript enabled. So here's my thought:
On the link to get to that page I would do something like this:
<a href="page2.php" onClick="this.href=page2.php?js=true">Page 2</a>
and then use $_GET['js'] to either include the javascript or not.
Is there a better way to do this?
Thanks
Steve