Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

make list value a link

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

make list value a link

Postby tryton » Mon Jul 14, 2003 9:35 am

This has been giving me a headache, because I am not able to find it using Google or any of the other php sites. So let's leave it up to the forum.

Question: How do I make a list so that when you choose a value, it takes you to another page.

For example, if I have a drop down list with the subjects:
Art
Craft
Photography

When Craft is chosen, then the user is taken to a page devoted to crafts. So really what I want is a list of links not just selectable values. Appreciate the help.


Tryton
User avatar
tryton
New php-forum User
New php-forum User
 
Posts: 49
Joined: Wed Jul 09, 2003 8:25 am
Location: Joze

Postby swirlee » Mon Jul 14, 2003 10:47 am

The solution is JavaScript. Check this page for the simplest (I always apply a variant of Occam's Razor when dealing with JavaScript -- the simplest solution is usually the best) such script I could Google. It makes some suggestions on how to deal with script-challenged browsers.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back


Return to HTML Basics

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.