Ian,

>  <cfset mylist = #form.artform#>
You don't need hashes in cfset like this. Just use : <cfset mylist =
form.artform>

But, you don't really need to do this either.



>
>  <cfloop from="1" to="#variables.adds#" index="id">

You don't need to look around item by item, you can do a loop around a list
like this :

<cfloop list="#form.artform#" index="artformid">

Then in your INSERT use :

INSERT INTO artformjoin (userid, artformid)
VALUES (#variables.userid#,#artformid#)

BTW, you only actually need a read CFLOCK around the <cfset variables.userid
= session.userid> and not around the rest of the code.

Hope this helps

Regards

Stephen




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to