<%
Option Explicit
Dim username,rsDelete,startletter
startletter = Request.QueryString("startletter")
if Session("fewmetadminlogin") = "True" then
if request.querystring("confirm_delete")="Yes" then
username = Request.QueryString("username")
%>
<!--#include file="../includes/conn.asp"-->
<%
set rsDelete = conn.Execute("DELETE * FROM users WHERE username = '"
& username & "'")
conn.close
set conn = nothing
else
%>
<a href="<%=request.servervariables("url")%>&confirm_ delete=Yes">Aww, go
on then</a>
<%
end if
end if
Response.Redirect("default.asp?startletter=" & startletter)
%>
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
"Mike Brearley" <> wrote in message
news:...
> How would I add a delete confirmation popup box for the following?
>
> Here's what I have... A table (not a form) that contains this line:
>
> <td align="center"><a
>
href="delete.asp?username=<%=rsUsers("username")%> &startletter=<%=startlette
> r%>">Delete user</a></td>
>
> And delete.asp looks like this...
>
> ----------------------------------------------
> <%
> Option Explicit
> Dim username,rsDelete,startletter
>
> startletter = Request.QueryString("startletter")
>
> if Session("fewmetadminlogin") = "True" then
>
> username = Request.QueryString("username")
> %>
> <!--#include file="../includes/conn.asp"-->
> <%
> set rsDelete = conn.Execute("DELETE * FROM users WHERE username = '" &
> username & "'")
>
> conn.close
> set conn = nothing
> end if
>
> Response.Redirect("default.asp?startletter=" & startletter)
> %>
>
> ---------------------------------------------
>
> --
> Posted 'as is'. If there are any spelling and/or grammar mistakes, they
> were a direct result of my fingers and brain not being synchronized or my
> lack of caffeine.
>
> Mike Brearley
>
>