<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="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>
<%
action=request.Form("action")
if action="add" then
writer=request.Form("writer")
techfrom=request.form("techfrom")
techtypename=request.Form("techtypename")
techtitle=request.Form("techtitle")
techcontent=request.Form("techcontent")
keyword=request.Form("keyword")
sql="insert into tech(writer,techfrom,techtypename,techtitle,techcontent,keyword) values('"+writer+"','"+techfrom+"','"+techtypename+"','"+techtitle+"','"+techcontent+"','"+keyword+"')"
conn.execute sql
response.Write("<script language='javascript'>alert('保存成功！');</script>")
response.redirect("addtech.asp")
end if


%>
</body>
</html>
<%
conn.close
%>
