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

📄 addfilm.asp

📁 影视点播系统代码
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
filmname=request.form("filmname")
address=request.form("address")
item=request.form("item")
if filmname<>"" then
sql="select * from data"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
rs.addnew
rs("name")=filmname
rs("address")=address
rs("item")=item
rs.update
issuccess=true
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加影片</title>
<style type="text/css">
<!--
body,td,th {font-family: 宋体, Arial;font-size: 12px;}
a {font-size: 12px;}
a:link {text-decoration: none;}
a:visited {text-decoration: none;}
a:hover {text-decoration: none;}
a:active {text-decoration: none;}
-->
</style>
</head>
<body link="#000033" vlink="#000033" alink="#000033" leftmargin="0" topmargin="0">
<!--#include file="item.asp"-->
<%
if issuccess=true then
response.write("<h2 align=center>影片添加成功</h2>")
end if
%>
<p>&nbsp;</p>
<form action="" method="post">
<table border=1  width="700" bordercolorlight="#FF6699" bordercolordark="#FFCCFF" align="center">
        <tr> 
          <td align=right>影片名称:
          <td><input  maxLength="50" name="filmname" size="20">
        <tr> 
          <td align=right>地址:
          <td><input maxLength="100" name="address" size="20">
		  一般以http:// rstp:// mms://为开头                  
         <tr>                     
          <td align=right>影片类型:                   
          <td><select size="1" name="item">      
            <%                                                
			set rs= server.createobject("adodb.recordset")
			sql = "select * from item" 
			rs.open sql,conn,1,1  
			do while not rs.eof 
			%>                                                
              <option><%=rs("name")%></option> 
			  <%        
			  rs.movenext                                                
			  loop         
			  rs.close 
			  %>          
            </select>               
		<tr>
          <td colspan="2"><input type="submit" value="添 加" style="border-style:groove"> &nbsp;&nbsp;
		      <input  type="reset" value="重 填" style="border-style:groove">                  
      </table>
	  </form>          
</body>                                                 
</html>                                                 

⌨️ 快捷键说明

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