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