Skip to main content
Participating Frequently
April 9, 2010
Answered

How do I use a list item to put info into a url?

  • April 9, 2010
  • 2 replies
  • 463 views

Website is here:

http://www.pitlanepass.com

It's still to be populated with true data but if I select an organisation i.e. norasport then it takes me to the orgdetail page and lists all riders registered with norasport. I have a unordered list that separates these down into individual categories and that works well but due to the long category names it looks messy so would like to replace this with a menu/list setup that tidies it up. Intitial trials are not good. I'm using DW8 and have limited php knowledge (i'm working on it!!) How do i change from the ul to a form/list  and is it possible to do away with a submit button easily?

Thanks!!!

This topic has been closed for replies.
Correct answer

Yes! If I understand your request correctly, this is actually very easy.

What you want to do is add a form with a JUMP MENU to that part of the page. In the JUMP MENU, you add your options, and a URL to send each option to... there is an option to go immediately on selection, skipping the need for a submit/go button.

Give that a shot - it seems like what you need.

2 replies

April 10, 2010

I think this is what you're talking about... give this a shot. You can style the menu with CSS if you want. 

This code will make a drop down like this: (http://www.melsbgc.com/test.htm)

<FORM NAME="form" ID="form">

  <SELECT NAME="jumpMenu" ID="jumpMenu" onChange="MM_jumpMenu('parent',this,0)">

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Junior%20National">Junior National</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=250%20National">250 National</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Elite">450 Elite</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Clubman">450 Clubman</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Elite">Open Elite</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Nationals">Open Nationals</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Clubman%20Cup">Open Clubman Cup</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Quad">450 Quad</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Quad">Open Quad</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=650%20Superlite">650 Superlite</OPTION>

    <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Superlite">Open Superlite</OPTION>

  </SELECT>

</FORM>

Participating Frequently
April 11, 2010

Thanks Michael, all sorted now! I followed your advice from your first reply and tried a jump menu. I'd previously tried it but had trouble populating it dynamically but created a static jump menu and made it dynamic a different way. It now works exactly as I wanted it to.

Correct answer
April 9, 2010

Yes! If I understand your request correctly, this is actually very easy.

What you want to do is add a form with a JUMP MENU to that part of the page. In the JUMP MENU, you add your options, and a URL to send each option to... there is an option to go immediately on selection, skipping the need for a submit/go button.

Give that a shot - it seems like what you need.