Answered
How to preselect radio buttons
I use the following to dynamically generate radio buttons
from my query, a list of cities.
<cfloop query="qryGetCity">
<cfoutput>
<cfinput type="radio" name="cityID" value="#qryGetCity.cityID#">#qryGetCity.city#<br>
</cfoutput>
</cfloop>
When the user logs on, I validate their information from LDAP and then they are taken to this page to select their city.
What I need to do now is when they log on, I still need to validate their info from LDAP, but also ge the city and when they are taken to this page, preselect the city for them.
How would I do this with dynamically generated radio buttons ? I think I know how to do it if hardcoded, but I dont know with dynamic output.
Thanks
<cfloop query="qryGetCity">
<cfoutput>
<cfinput type="radio" name="cityID" value="#qryGetCity.cityID#">#qryGetCity.city#<br>
</cfoutput>
</cfloop>
When the user logs on, I validate their information from LDAP and then they are taken to this page to select their city.
What I need to do now is when they log on, I still need to validate their info from LDAP, but also ge the city and when they are taken to this page, preselect the city for them.
How would I do this with dynamically generated radio buttons ? I think I know how to do it if hardcoded, but I dont know with dynamic output.
Thanks
