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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop down menu

Status
Not open for further replies.

richvalve

Programmer
Mar 2, 2001
20
GB
Hello

I'm creating a drop down menu, I've done it with a form etc and have a results page. However the result to the drop down menu (when you've pressed submit and gone to the page) it keeps just showing the 1st record in my database! Not the item you have selected!

Anyone have any ideas?!

Many thanks in advance
 
I don't know if this is exactly what you are looking for, but here it is.
You can change go to submit, change the names and URLS and should be ready to go.

<form name=&quot;form1&quot;>
<select name=&quot;menu1&quot; onChange=&quot;MM_jumpMenu('parent',this,0)&quot;>
<option selected>Navigation</option>
<option value=&quot; <option value=&quot; page</option>
</select>
<input type=&quot;button&quot; name=&quot;Button1&quot; value=&quot;Go&quot; onClick=&quot;MM_jumpMenuGo('menu1','parent',0)&quot;>
</form>
 
Richvalve,

Are you using the dd list to help search through a recordset? If you are can you post the SQL code that UD generated or the code you're using if you coded it manually?

M &quot;There are 3 kinds of people; those that can count and those that can't&quot;
 
I've acutally sorted it now thanks.

Sometimes it's best to start again with sort of 'skeleton' data and strip everything back... well thats what I find!

Thanks!

 
I had the same problem and it drove me nuts. You need to add a server behavior that reads the record ID in the URL parameter passed by the results page and retrieves teh record. If you omit this step, teh server will retrieve the first record in the recordset. In Server Behaviors click + and choose >Move to Record then choose >Move to specific record. This will pop up a window and its pretty easy from there. Scott Neth
Web Designer/Cyberpunk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top