⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 infosave.asp

📁 网络商城系统
💻 ASP
字号:
<!--#include file="session.asp"-->
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>信息添加</title>
<link rel="stylesheet" type="text/css" href="img/admin_style.css">
</head>
<body>
<div align="center">
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainmiddle">
        <tr> 
          <td width="29" height="32"> <div align="left"> 
              <p class="maindaohang">&nbsp;</p>
            </div></td>
          <td width="709"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <b><font color="#000000"><b> <span class="bigNavi">信息添加</span>              </b></font></b></td>
          <td width="8" class="mainrights"></td>
        </tr>
      </table>	   
    <table width="95%" height="148" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
      <tr class="tabbgcolorli"> 
        <td height="20"><div align="center">
		<%if request.form("title")="" then
	notice="<br><div align=center>信息标题必须填写</div>"
	cw=true
	end if
	if request.form("content")="" then
	notice=notice+"<br><div align=center>信息内容必须填写</div>"
	cw=true
	end if
	if cw=true then
	response.write notice
	response.write"<br><a href=javascript:history.go(-1)>返回修改</a>"
	else
	function html(constring)
        constring=replace(constring,CHR(13),"")
		constring=replace(constring,CHR(10),"<br>")
		constring=replace(constring,CHR(10)&CHR(10),"</p><p>")
		html=constring
    end function	
    title=trim(request("title"))
	csort=trim(request("sort"))
	content=html(trim(request("content")))
	set rs=server.createobject("adodb.recordset")
	sql="select * from info"
	rs.open sql,conn,3,3
	rs.addnew
	rs("title")=title
	rs("sort")=csort	
	rs("content")=content
	rs.update
	rs.close
	set rs=nothing
	response.write"信息添加成功!<br><br>"
	response.write"返回继续添加?&nbsp;&nbsp;<a href=infoadd.asp>是</a>&nbsp;&nbsp;<a href=otherinfo.asp>否</a>"
	end if
		%></div></td>
      </tr>
    </table>
	  
    </div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -