Doh! I knew I was being stupid! Thanks.
> -----Original Message-----
> From: Ben Johansen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 02, 2002 6:31 PM
> To: Multiple recipients of list witango-talk
> Subject: RE: Witango-Talk: Looping through multiple CHECKBOX answers
>
>
> <@ROWS ARRAY='<@ARG LinkedUsers TYPE=ARRAY>'>
> <@ARG LinkedUsers><br>
> </@ROWS>
>
> Well for one thing in the above code you reference type=array
> in the first @ARG but not the second therefore you will only
> see the first value over and over again. It did what you
> asked but not what you expected ;-)
>
> I would suggest this
> <@ASSIGN local$LinkRes VALUE='<@ARG LinkedUsers TYPE=ARRAY>'>
> @@local$LinkRes
>
> This will show you the orientation of the array
> 1 row many columns or 1 column many rows.
>
>
> Ben Johansen - http://www.pcforge.com
> Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm
> Latest downloads & List Archives @ http://www.witango.ws
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Wilcox, Jamileh
> Sent: Monday, December 02, 2002 3:35 PM
> To: Multiple recipients of list witango-talk
> Subject: Witango-Talk: Looping through multiple CHECKBOX answers
>
> I have this on my form:
>
> <TR ALIGN="LEFT" VALIGN="TOP">
> <TD>
> <B>Select Users to link to this department:</B>
> </TD>
> <TD>
> <@ROWS ARRAY="UserShortList">
> <INPUT TYPE=CHECKBOX NAME="LinkedUsers"
> VALUE="<@COL NUM=1>"><@COL NUM=2> <@COL NUM=3>
> <br>
> </@ROWS>
> </TD>
> </TR>
>
> The entry person should be able to select multiple users to
> attach to one department.
>
>
> In the HTML, it shows up like this (except the *s are Checkboxes):
>
> Select Users to link to this department:
> * jq qq
> * t1j jqqu
> * t2j jqqm
> * test1b test6b
> * test23 t23
> * testuser manageruser
> * test9 user9
> * test2 testuser
>
>
> For the insert action, I need to insert one row for each
> answer (user) checked off. It's not working. I'm using a
> FOR loop to work through the array (1 to <@NUMROWS
> ARRAY='<@ARG LinkedUsers TYPE=ARRAY>'>), but it's only
> inserting the value for the first item checked over & over.
>
> Since that wasn't working, just to see what was being output,
> I stuck in a plain HTML with the following:
>
> <@ROWS ARRAY='<@ARG LinkedUsers TYPE=ARRAY>'>
> <@ARG LinkedUsers><br>
> </@ROWS>
>
> If I check the first 4 boxes, here's the output:
>
> NUMROWS = 4
>
> ROWS =
> jqq
> jqq
> jqq
> jqq
>
> In other words, it's looping through the array of the answers
> from the Checkboxes, but it's only giving me the first value.
>
> I swear I had this working Wednesday, but I'm stupid today.
> Can anyone tell me what I've got wrong?
>
> Muchas gracias!
> ______________________________________________________________
> __________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to
> [EMAIL PROTECTED]
> with unsubscribe witango-talk in the message body
>
> ______________________________________________________________
> __________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to
> [EMAIL PROTECTED]
> with unsubscribe witango-talk in the message body
>
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body