Implementing a tree structure with a sort string field (routines--delete posts)

Source: Internet
Author: User
Tags sort
Sort Program Name: delrec.asp
Program function: Delete posts (pruning)

<!--#include file= ""-->
Flag=request ("flag")
Keyid=request ("keyID")
Pageno=request ("PageNo")
Password=request.form ("password")
If flag= "1" Then
If password= "your admin password" then
Set Guestconn=server.createobject ("Adodb.connection")
Guestconn. Open Lybstr
Set cm = Server.CreateObject ("Adodb.command")
Set cm. ActiveConnection = Guestconn
Cm.commandtext = "Lybdel"
Cm.commandtype = 4
Set p = cm. Parameters
P.append cm. CreateParameter ("@keyid", 3,1,4)
CM ("@keyid") =keyid
Set guestconn=nothing
Response.Redirect "index.asp?pageno=" &pageno
End If
End If
<style type= "Text/css" >
a {Text-decoration:none}
Body {line-height:18px;font-size:9pt;font-family: XXFarEastFont-Arial}
a:hover {color: #FF0000; Text-decoration:none}
. Submit {line-height:9pt;font-size:9pt;font-family: Song body}
. submit1 {line-height:8pt;font-size:8pt;font-family: Song body}
. selectform {font-family: Song body; font-size:9pt;background-color:ffe4e4}
TD {Font-family: Song body; font-size:9pt;background-color:ecf7ff}
. TD1 {font-family: Song body; Font-size:9pt;background-color:a2c8f2}
. td2 {font-family: Song body; font-size:9pt;background-color:e9ede0}
. small1 {font-family: Song body; font-size:9pt;background-color:ffffff;line-height:9pt}
<body topmargin=16 background= ' topbg.gif ' >
<form name= ' manage ' action= ' delrec.asp ' method= ' post ' >
<input type=hidden name= ' flag ' value= ' 1 ' >
<input type=hidden name= ' keyID ' value= ' <% =keyid ' >
<input type=hidden name= ' pageno ' value= ' <% =pageno ' >
<table width=80% align=center>
&LT;TD align=right> Please enter the admin password:</td>
&LT;TD align=left><input type= ' password ' name= ' password ' size=20 class= ' Submit ' ></td>
&LT;TD align=center><input type= ' submit ' value= ' delete the message ' class= ' Submit ' ></td>

Software Use homepage authoring

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.