Thanks
On the first page the fields are static.
ie
<input type="checkbox" Name="Fields" Value="Field1">Field1
<input type="checkbox" Name="Fields" Value="Field2">Field2
I can query the database with "Select #Fields# from Table_name"
but i cant display the fields cause "Fields" is a list and cant
get it to break it with cfloop
--- Original Message ---
"Billy Cravens" <[EMAIL PROTECTED]> Wrote on
Wed, 5 Apr 2000 16:21:08 -0500
------------------
A couple of ways (off the top of my head):
1. dynamically build a list using javascript, whenever a box
is checked.
When box is checked (document.formname.fieldname.checked == true),
add a
value to a list. When a box gets unchecked, remove its value
from the list.
Pass the list you've built through a hidden form field, then
loop through
this list on the same page.
2. give the checkbox a naming convention that you can parse
over. IE, call
it check#id#, or whatever. Then on the next page, do some processing
on all
fields that begin with check..like:
<cfloop query="allids">
<cfif IsDefined("Evaluate("check" & id)")>
<!--- do some stuff here --->
</cfif>
</cfloop>
---
Billy Cravens
[EMAIL PROTECTED]
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.
-----
Sent using MailStart.com ( http://MailStart.Com/welcome.html )
The FREE way to access your mailbox via any web browser, anywhere!
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.