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

cfloop help

Status
Not open for further replies.

danarashad

Programmer
Nov 2, 2006
115
US
Why doesn't this work.
<cfoutput query="depts">
<cfset deptname = #Dept# >
<input name="dept" type="radio" value="#deptname#"
<cfif #session.auth.dept# IS #deptname#> checked="checked" </cfif>
<cfloop query="catDepts">#deptname#
<cfif #deptname# IS NOT #catDepts.catsall#> disabled="disabled" </cfif>
</cfloop>
/>
This disables all the radio buttons. Even when they are valid.

#Name#<br />
</cfoutput>
 
why do you have a CFLOOP on a query inside a CFOUTPUT on a different query?

i think they might be combined into a single query

also, why isn't your CFOUTPUT closed?

you can help us a lot here by explaining what you're trying to do, as well as explaining the queries that you're using

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top