|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Dynamic Select Box problem
Hi there everyone
I would appreciate some help with the problem I am experiencing. I am populating a select box in a CFForm the code is as below <tr> <td width="60">Member Role</td> <td width="440"> <cfselect name="MemberRole" size="25"> <cfloop query="qGetMemberRole"> <cfoutput><option value="#MemberRoleID#">#MemberRole#</option></cfoutput> </cfloop> </cfselect> </td> </tr> the code outputs the correct values, but when i run the page in the browser - all I get is a big text box, not a select box? any ideas? thanks in advance. mhasse |
|
#2
|
|||
|
|||
|
hi sorry to waste anyones time - but I took the size out of the select options and it works now.
thanks |
|
#3
|
|||
|
|||
|
There's easier way to do <cfselect> also, instead of using cfloop on <option> just add query="" display="" and id="" to your <cfselect>
PHP Code:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Dynamic Select Box problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|