View Full Version : Country/State selection with redirect?

06-17-2009, 04:28 PM
Hi folks,

I'm trying to build a pretty simple form that will redirect a user to a particular page based one the geographic location that they choose. I've actually found a pretty nifty script here (http://downhomeconsulting.com/Downloads/Country_State_Drop_Down/demo.html) but for the life of me, I can't get it to redirect a user when they hit a submit button. To be honest I'm kinda new to javascript (I'm more of an actionscript guy), however this seems like it shouldn't be as hard as I'm making it out to be. I can't get over the feeling that I'm missing something really simple.

Thanks in advance

06-17-2009, 06:01 PM
Since you didn't provide any code, it's impossible to know the problem without a crystal ball. Some users here have those, though, so maybe they can help. :)

It's not really a "redirect" if they're actually clicking a form button. It's then moved into the realm of form processing. Use the form's action attribute to point to the processing page. It should generate content appropriate for the location, or else you could actually redirect at this point.