
<!--#INCLUDE FILE="fupload.inc"-->
<!--#include file="../SQLconn.asp"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="css/css.css">
<title>±£´æ</title>

<link rel="stylesheet" href="../css/style.css">
</head>
<body  topmargin="5" leftmargin="5">

<p>
<%
if Request.ServerVariables("REQUEST_METHOD") = "POST" Then
'---------------------------
'response.write "¿ªÊ¼·¢ËÍ<br>"
'---------------------------
Dim Fields
UploadSizeLimit=21212121
Set Fields = GetUpload()
dim Field
For Each Field In Fields.Items
if Field.name="bid" then bid=BinaryToString(Field.value)
if Field.name="myname" then myname=BinaryToString(Field.value)
if Field.name="content" then content=BinaryToString(Field.value)
 

next


%>
<%
strNow=now()
strip=Request.ServerVariables("REMOTE_ADDR")
turename=request.cookies("tname")


set rszhuti=server.createobject("adodb.recordset")
rszhutisql="select * from bbsDetail where (did is null)" 

rszhuti.open rszhutisql,conn,1,3
rszhuti.addnew
rszhuti("bid")=bid
rszhuti("myName")=myname
rszhuti("content")=content
rszhuti("updatetime")=strNow
rszhuti("upip")=strip
rszhuti("upname")=turename 
rszhuti.update
rszhuti.close

 
response.redirect "viewBBS.asp?bid="&bid&""  
%>
<%=bid%><%=myname%><%=content%>



  <%end if%>
 
