Link to home
Start Free TrialLog in
Avatar of WebStalkers
WebStalkersFlag for United States of America

asked on

Drop-down menu question

I am using a drop-down menu so a user can select a language for the page to be displayed in.
In my select options it is currently like this:

        <select name="langChoice" onchange="location = this.options[this.selectedIndex].value;">
            <option>Select language...</option>
            <option value="http://localhost:100/#session.pageName#?langChoice=100">English</option>
            <option value="http://localhost:100/#session.pageName#?langChoice=101">German</option>
            <option value="http://localhost:100/#session.pageName#?langChoice=102">Spanish</option>
        </select>

Open in new window


This reloads the page using the langChoice   variable but it ends up like this:
http://domain/pagename?langchoice= 101

I need it to just reload the page using the langChoice value but not show the:
?langChoice=101

Any ideas?



-
Avatar of WebStalkers
WebStalkers
Flag of United States of America image

ASKER

The other thing I just thought of is having the select value go to a redirect page that resets the session var, makes it hidden and forward back to the originating page.
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the replay.  i ended up using the redirect solution that I mentioned and have it working now.

Thanks again