当前位置:编程学习 > asp >>

故事接龙4 post.asp

<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
'该变量取得当前发表的故事是第几章
dim xchapter
strfilename=server.MapPath("story.txt")
set conlink=server.CreateObject("MSWC.NextLink")
ith=conlink.GetListCount("story.txt")
if cint(ith)>0 then
    '根据链接文件story.txt中的链接数确定当前要发表的是第几章
    xchapter=cint(ith)+1
else
    xchapter=1
end if
%>
<FORM action="afterpost.asp" method=post target=mainFrame id=form1 name=form1>
<P ><STRONG>
<FONT color=mediumslateblue face=幼圆 size=2>欢迎加入故事接龙    
<FONT color=crimson face="" size=4>题目</FONT>
</FONT></STRONG>
</P>
<P><FONT>第<%=xchapter%>章 
<INPUT id=text1 name=title style="HEIGHT: 21px; WIDTH: 80%"></FONT></P>
<P><FONT>作 者 
<INPUT id=text2 name=author></FONT></P>
<P>以下写入续接的故事内容
<INPUT id=submit1 name=submit1 type=submit value=发送>
</P>
<P>     
<TEXTAREA id=TEXTAREA1 name=content style="HEIGHT: 162px; WIDTH: 81.85%">
</TEXTAREA>
</P>
<P> </P>
</FORM>
</BODY>
</HTML>

补充:asp教程,高级应用 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,