mf.asp
上传用户:comthink
上传日期:2021-05-06
资源大小:1280k
文件大小:2k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <!--#include file="conn.asp"-->
  2. <form name="form1" method="post" action="mf.asp?mf=mf&sname=<%=request.QueryString("sname")%>&cat=<%=request.QueryString("cat")%>">
  3.   <%cat=request.QueryString("cat")%>
  4.   <%=request.QueryString("cat")%>URL
  5.   <input name="mf" type="text"
  6.   <% if strcomp(cat,"点歌")=0 then %>
  7.   value="http://www.ip363.com/book/bq/仙剑奇侠传%20-%20%20一直很安静.mp3">
  8.   <%end if%>
  9.    <% if strcomp(cat,"图片")=0 then %>
  10.   value="g.bmp">
  11.   <%end if%>
  12.  送给
  13.   <select name="rname">
  14.   <option>大家</option>
  15.   <%
  16.   set rsout=Server.CreateObject("ADODB.RecordSet")
  17. sqlout="select  * from  online  where id ORDER BY id DESC"
  18. rsout.open sqlout,conn,1,1
  19. for i=1 to 50 step 1
  20. %>
  21.      <option><%response.Write(rsout("username"))%></option>
  22. <%
  23.  rsout.movenext
  24.     if rsout.EOF Then Exit For
  25. next
  26. %>
  27.   
  28.   </select>
  29.   <%=request.QueryString("cat")%>名
  30.   <input name="mc" type="text" size="10">  
  31.  <input type="submit" name="Submit" value="发送">
  32. </form>
  33. <%
  34.           ac=request.QueryString("mf")
  35.   cat=request.QueryString("cat")
  36.            if strcomp(ac,"mf")=0 then
  37.           set rs=server.createobject("adodb.recordset")
  38.           sql="select * from ip363net where id is null"
  39.           rs.open sql,conn,1,3  
  40.           rs.addnew
  41.           rs("username")=request.QueryString("sname")
  42.   rs("rname")=request.form("rname")
  43.           rs("msg")=request.form("msg")
  44.   rs("mc")=request.form("mc")
  45.   if strcomp(cat,"图片")=0 then
  46.           rs("gif")=request.Form("mf")
  47.   end if
  48.   if strcomp(cat,"点歌")=0 then
  49.           rs("url")=request.Form("mf")
  50.   end if
  51.           rs("posttime")=time()
  52.           rs.update
  53.           set rs=nothing
  54.           end if
  55. %>