do u mean this:
<%
i = 0
varcount = 0
sqlUser= "select * from t_user_type order by userType"
set rsUser = conn.execute(sqlUser)
do while not rsUser.eof
i = i + 1
varcount = varcount + 1
deleted = deleted + varcount
sqlView = "select * from t_email_view where emailID = '" & emailID & "' and emailView = '1' order by userType"
set rsView = conn.execute(sqlView)
%>
<tr>
<td><input name="deleted" type="checkbox" value="<%=rsUser("userType")%>" <%if rsView("userType")=rsUser("userType") then response.Write(" checked")%> ><%=rsUser("userDesc")%></td>
</tr>
<%
rsUser.moveNext
loop
%>
nothing happens, it is still the same..
i think something's wrong with my checking of checked checkboxes statement. it doesn't seem to loop thru the
rsView("userType").
when i do a response.write in the <td> tag,
<%response.Write(rsView("userType") & rsUser("userType"))%>
it gave me this:
Admin Admin
Admin Student
Admin Parent
Admin Teacher
Admin Principal
how and what should i do?