- <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
- <!--#include file="inc/conn.asp"-->
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>修改栏目</title>
- </head>
- <body>
- <form id="form1" name="form1" method="post" action="tempAddItem.asp">
- <table width="53%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:50px;">
- <tr>
- <td> 要把栏目修改为:
- <label>
- <input type="text" name="txtItem" id="txtItem" />
- </label>
- <label>
- <input type="submit" name="go" id="go" value="确定修改" />
- </label></td>
- </tr>
- </table>
- </form>
- <%
- id=trim(request("id"))
- if id="" then
- 'response.Write("<a href='javascript:history.go(-1)'>返回</a>")
- response.Write("<script>")
- response.Write("alert('你是非法用户');")
- response.Write("</script>")
- response.Redirect("temp.asp")
- response.End()
- end if
- enter=request("go")
- itemName=trim(request("txtItem"))
- if enter<>"" and itemName<>"" then
- sql="update blogItem set itemName='"&itemName&"' where itemId="&cint(id)
- conn.execute(sql)
- response.Redirect("temp.asp")
- end if
- %>
- </body>
- </html>
ADO的基本操作(四)修改
最新推荐文章于 2020-10-29 21:20:15 发布