<form name="completion" id="form1" method="post" action="">
<% 
Dim strNumbers, arrNumbers, numCheckValue, NumToValue, i, M
strNumbers = "1,3,6,8,12,16,17,20" 'Typically this would be a string 
from the database
arrNumbers = split(strNumbers,",")
NumToValue = rsAnime.Fields.Item("intDiscInSeries").Value
For i=1 to NumToValue
M=ElementInArray(arrNumbers,i,compare)%>
<input type="checkbox" name="HaveDisc" value="<%=i%>" <%if M=true 
then response.write "checked="& chr(34) & i & chr(34)  end if %>/>
        <%if i mod 10=0 then
        response.write "<BR>"
End If
Next
%>
</Form>
Now at this point two have rows of checkboxes, which values are 
determined by the comma-delimited string in the database. Now here is 
where I'm having the problem. How do i take checkbox's value= for the 
checkboxes that are checked and rejoin them into comma-delimited 
string and then send it off to the database.

I'm guessing that if I create a hidden input type in the form. I can 
put the string as the value and update the "update record" server 
behavior in Dreamweaver, but I'm not sure.

Is it possible to do this without creating two pages?







 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to