Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jump Menu - dynamic links in database

Status
Not open for further replies.

multipleintell

Technical User
Dec 7, 2001
72
US
I want to make a jump menu that lists all of the possible "Talent Names" from a query of a MySQL database and then take the use to the URL that goes with the "Talent Name." The URL would be a field in the database. How can I do this? It seems like jump menus are static, but that can't be the case.

Thanks,
Melissa
 
hm....I would start by making a simple jump menu...then assign URL field and label field to values from recordset.
soo simple form would be:
Code:
<form name=&quot;form1&quot;>
  <select name=&quot;menu1&quot; onChange=&quot;MM_jumpMenu('parent',this,1)&quot;>
    <option value=&quot;MY_URL&quot; selected>MY_LABEL</option>
    <option value=&quot;MY_URL2&quot;>MY_LABEL2</option>
  </select>
</form>
then simple substitute &quot;MY_URL&quot; and &quot;MY_LABEL&quot;

Code:
....
<option value=&quot;<%=(Rs.Fields.Item(&quot;URL&quot;).Value)%>&quot; selected>=&quot;<%=(Rs.Fields.Item(&quot;LABEL&quot;).Value)%>&quot;</option>
...


give it a try...
All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top