Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2009
    Thanked 0 Times in 0 Posts

    Country/State selection with redirect?

    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 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

  2. #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Thanked 330 Times in 326 Posts
    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.
    Are you a Help Vampire?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts