%if session("username")="" then%> <%end if%> <% if request("action")="del_one" then openconn set rs=server.CreateObject("adodb.recordset") sql="delete from tblAdmin Where idadmin='"&replace(Request.QueryString("nid"),"'","''")&"'" Conn.execute (sql) Response.Redirect("?hbxb=30&Quan-ly-nguoi-dung.html") end if%> <% if request("action")="submit" then names=replace(request("names"),"'","''") email=replace(request("email"),"'","''") mobile=replace(request("mobile"),"'","''") username=replace(request("username"),"'","''") password=sha256(replace(request("password"),"'","''")) openconn set rs=server.CreateObject("adodb.recordset") sql="insert into tblAdmin(name,email,mobile,username,password) values(N'"&names&"','"&email&"',N'"&mobile&"','"&username&"','"&password&"')" 'response.Write(password) ' response.End() conn.execute(sql) response.Redirect("?hbxb=30&Quan-ly-nguoi-dung.html") %> <%end if%>