|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Dynamic Drop Down Menu
Hi,
I am trying to create a drop down menu, that will allow a user to select entries from another table (Like a look-up field in Access). This is the code I am using. <CFOUTPUT QUERY="empList"> <select name="select"> <option>#applicationid#, #application_name#</option> </select> </CFOUTPUT> My problem is that instead of displaying the data in a nice drop down menu, it makes me a new drop down menu for each entry (See screenshot) URL I'm very new to Coldfusion, just doing it for a Uni project. If anyone can help me I would be very grateful. Regards Ian Harrison |
|
#2
|
|||
|
|||
|
The problem is that you have placed <select> tags inside loop.
Correct code: <select name="select"> <CFOUTPUT QUERY="empList"> <option>#applicationid#, #application_name#</option> </CFOUTPUT> </select> |
|
#3
|
|||
|
|||
|
Brilliant, worked perfectly.
Thanks for taking the time to answer, saved me lots of stress! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Cold Fusion Development > Dynamic Drop Down Menu |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|