PNJ,
the first code i posted had few erros in it, i dont think the error is with IsArray
here is the clean version of it
VB Code:
<% uid=request.form("chkAddressID") if isarray(uid) then uid=split(uid, ",") for i=0 to ubound (uid) sql="Delete From email Where ID=" & uid(i) Response.Write sql & "<br>" next else sql="delete from email where userid=" & uid Response.Write sql end if %>
This code is the same but it doesnt use IsArray
VB Code:
<% uid=request.form("chkAddressID") if instr(1, uid, ",") then uid=split(uid, ",") for i=0 to ubound (uid) sql="Delete From email Where ID=" & uid (i) Response.Write sql & "<br>" next else sql="delete from email where userid=" & uid Response.Write sql end if %>
Test them out now.
Hope this helps.
Danial





Reply With Quote