Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,612 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 931 people online right now. Registration is fast and FREE... Join Now!




Using drop-down list to redirect

 
Reply to this topicStart new topic

Using drop-down list to redirect

asadarnell
post 8 Jul, 2008 - 04:53 PM
Post #1


D.I.C Head

**
Joined: 30 Aug, 2007
Posts: 108


My Contributions


I know this has to be simple, but can't figure it out. I want to have a drop down menu/list that when a user selects an item and pushes the "Next" button, it send them to another page.
For example, have say 3 items on the list "One" "Two" and "Three"

If they select "One" on the list, then hit the next button, it'll send them to /one.htm
or if they select "Two" on the list, and hit the button, it'll send them ti /two.htm

Any help is appreciated.
Thanks,
Asa
User is offlineProfile CardPM

Go to the top of the page

girasquid
post 8 Jul, 2008 - 05:01 PM
Post #2


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 1,256



Thanked 14 times

Dream Kudos: 650
My Contributions


Are you planning on handling the value of the drop down list using Javascript, or a server-side language like PHP/Perl/etc.?
User is offlineProfile CardPM

Go to the top of the page

asadarnell
post 8 Jul, 2008 - 05:10 PM
Post #3


D.I.C Head

**
Joined: 30 Aug, 2007
Posts: 108


My Contributions


QUOTE(girasquid @ 8 Jul, 2008 - 06:01 PM) *

Are you planning on handling the value of the drop down list using Javascript, or a server-side language like PHP/Perl/etc.?

Not sure. I have no idea what's needed. Which do you suggest? Sorry for the lack of knowledge, haha.

thanks
User is offlineProfile CardPM

Go to the top of the page

girasquid
post 8 Jul, 2008 - 05:25 PM
Post #4


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 1,256



Thanked 14 times

Dream Kudos: 650
My Contributions


It doesn't really matter either way - it's just whatever you're more comfortable with. Server-side will be a safer bet as it will work even if users have JS disabled - but using JS will let you get it done faster(potentially). Whichever you like more, just search for '[language] handle dropdownlist', and '[language] redirect'.
User is offlineProfile CardPM

Go to the top of the page

asadarnell
post 8 Jul, 2008 - 05:41 PM
Post #5


D.I.C Head

**
Joined: 30 Aug, 2007
Posts: 108


My Contributions


QUOTE(girasquid @ 8 Jul, 2008 - 06:25 PM) *

It doesn't really matter either way - it's just whatever you're more comfortable with. Server-side will be a safer bet as it will work even if users have JS disabled - but using JS will let you get it done faster(potentially). Whichever you like more, just search for '[language] handle dropdownlist', and '[language] redirect'.


Well, since I've already spend hours in php on the site I'm working on, might as well go with that. And it'll help since potential customers will be on iPhones, and other devices with no javascript. Thanks!
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 02:37AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month