Yeah, everything wa a bit vague... :o)
> <form>
> <cfloop index="i" from="1" to="#ArrayLen(queryname.options)#">
> <cfoutput><input type="checkbox" name="Levels" value="
> #queryname.options[i]#"> #queryname.options[i]# <br></cfoutput>
> </cfloop>
> </form>
That's the bit I wanted -- sticking each checkbox with the same name
actually returns a list of those checked by the user. I needed this lot
for both submitting information to the database and for writing back out
when there was an error with the form submission, so here's how I solved
the second bit:
<cfoutput query="adminlevels">
<input type="checkbox" name="useraccess" value="#adminlevels.at_id#"
<cfif isdefined("attributes.useraccess") AND
listfind(attributes.useraccess, adminlevels.at_id)>
CHECKED
</cfif>
> #adminlevels.at_description#<br>
</cfoutput>
Cheers,
Tim.
-------------------------------------------------------
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
-------------------------------------------------------
rawnet ltd
Atrium Court
Bracknell [EMAIL PROTECTED]
Berkshire Tel : +44 (0) 1344 393 040
RG12 1BW, UK http://www.rawnet.com
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential. If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]