Well I've advanced it a little bit, I now have 2 arrays to work with, but its not working...
t_a_formdata holds values such as "1|approve,2|delete,3|approve"
t_a_size the size of t_a_formdata
t_a_size1 the real size (put in dfferent variable to work with...}
t_a_formprocess I want to be either 'approve' or delete
over all function to distinguish whether to approve or delete a site...
Error I'm getting
Microsoft VBScript compilation error '800a0402'
Expected integer constant
/ss/toplist/admin_approve.asp, line 14
Dim t_a_formprocess(t_a_size1)
code
t_a_formdata = Split(request.form("approve"), ",")
t_a_size = Ubound(t_a_formdata)
t_a_size1 = Cint(t_a_size) - 1
Dim I
Dim t_a_formprocess(t_a_size1)
for i=0 to t_a_size
t_a_formprocess(I) = Split(t_a_formdata(I), "|")
Next
for I=0 to t_a_size1
if t_a_formprocess(I) = "approve" then
strsql = "UPDATE TOPLIST SET ADMINDISPLAY=1 WHERE SITEID=" & t_a_formdata(I)
t_conn.execute(strsql)
else
strsql = "DELETE FROM TOPLIST WHERE SITEID=" & t_a_formdata(I)
end if
next
---------------
Da_Stimulator has spoken