Off the top of my head, debug at your own risk :-)
<cfloop list="#form.fieldnames#" index="field">
<cfif left(field,3) EQ "HS_">
DO HS INSERT STUFF
<cfelseif left(field,4) EQ "QID_">
<cfset ID = right(field,len(field)-4)>
<cfset QIDvalue = form["QID_" & ID]>
<cfset CIDvalue = form["CID_" & ID]>
DO QID/CID STUFF
</cfif>
</cfloop>
--------------
Ian Skinner
Web Programmer
BloodSource
<file:///C:\Documents%20and%20Settings\iskinner\Application%20Data\Microsoft\Signatures\www.BloodSource.org> www.BloodSource.org <http://www.BloodSource.orgSacramento>
Sacramento, CA
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confidentiality Notice: This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- inserting from form Greg Morphis
- Ian Skinner