首先在这个管理文件里是这样定义的:
<input type="button" name="senduser4" id="senduser4" value="删除所有会员的信息" onClick="javascript:window.open('delsenduser.asp?userName=_alluser','sendback')"> <input type="button" name="senduser22" id="senduser22" value="删除所有会员已读的信息" onClick="javascript:window.open('delsenduser.asp?userName=_okuser','sendback')"> </p>
而在这个delsenduser文件中无法删除会员信息,我用的是SQL的,delsenduser.asp中的这两句有点问题,不知如何改而获取上页中的值,请帮忙。
<% if chkcookie(request("userName"))="_alluser" then conn.execute "delete * from UserMsg " conn.close set conn=nothing%> <script language="javascript"> alert( "已成功删除!") window.close(); </script> <% else if chkcookie(request("userName"))="_okuser" then conn.execute "delete * from UserMsg where readle=1" conn.close set conn=nothing%> <script language="javascript"> alert( "已成功删除!") window.close(); </script>