ASP advanced article online Management Update--the article modified article
Author: Beach Boy
In the last section we talked about the implementation of the online deletion of the article, here I will introduce you to the online modification of the article management system. In this system, the provision of online modification is an essential content, because when you update the article on the Internet, always encounter such a problem, a careless will cause the error of adding, sometimes the content is not complete, there may be the column of the article originally added when the wrong choice, At the same time it is such a mistake to appear the necessity of this procedure.
The article's online modification saves the program actually and the article adds and saves the program to be similar, it's just that the database is being updated and the article is adding a new record for the database, but it's pretty much the same in general, so here I'm just commenting on the different points of those two programs, Other if there's something you don't understand, take a look at section second to third of this topic, and let's introduce the process of implementing this feature:
(1). File edit.asp, this file has nothing to speak of, because basically and the system addarticle.asp program is the same, only in the article title and content part of the article took the corresponding database content, in order to facilitate reference modification.
<!--#include file= "conn.asp"-->
<%
If Request.Cookies ("Adminok") = "" Then
Response.Redirect "Login.asp"
End If
%>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<meta name= "generator" content= "Microsoft FrontPage 3.0" >
<link rel= "stylesheet" type= "Text/css" href= "Style.css" >
<title> Modify Articles </title>
<body>
<form method= "POST" action= saveedit.asp?id=<%=request ("id")%> ">
<div align= "center" ><center><table border= "1" cellspacing= "0" width= "80%" bordercolorlight= "#000000" bordercolordark= "#FFFFFF" cellpadding= "0" >
<tr>
<TD width= "100%" bgcolor= "#D0D0D0" height= "" ><div align= "Center" ><center><p><b> amendment Chapter </b></td>
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.