有谁会做网站编程不?怎么做个投票器?

 我来答
沙滩爱贝壳
2010-02-22 · 超过55用户采纳过TA的回答
知道小有建树答主
回答量:274
采纳率:0%
帮助的人:60.2万
展开全部
<form action="c.asp" method="post">
<font color=#88ddff size=2>你对本站的印象如何:</font>
<p><font color=#ff0000 size=2>很好:<input type=radio name="ying" value="good">
一般:<input type=radio name="ying" value="yiban">
<p>差:<input type=radio name="ying" value="bad">
很差:<input type=radio name="ying" value="vbad"></font>
<p><center><input type=submit value="查看结果">
<P><input type=reset value="重新选择">
</center></form>
<%
ming=request.form("ying")
%>
<%
if ming="" then
%>
<%
elseif ming="good" then
countfile=Server.mappath("good.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile,1,false,false)
ren1=textinstance.readall
ren1=ren1+1
set textinstance=fileinstance.createtextfile(countfile,true,false)
textinstance.writeline(ren1)
%>
很好:<%=ren1%>;
<%
countfile1=Server.mappath("yiban.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile1,1,false,false)
ren2=textinstance.readall
%>
一般:<%=ren2%>;
<%
countfile1=Server.mappath("bad.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile1,1,false,false)
ren3=textinstance.readall
%>
<P> 差:<%=ren3%>;
<%
countfile=Server.mappath("vbad.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile,1,false,false)
ren4=textinstance.readall
%>
很差:<%=ren4%>;

<%
elseif ming="yiban" then
countfile=Server.mappath("good.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile,1,false,false)
ren1=textinstance.readall

%>
很好:<%=ren1%>;
<%
countfile1=Server.mappath("yiban.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile1,1,false,false)
ren2=textinstance.readall
ren2=ren2+1
set textinstance=fileinstance.createtextfile(countfile1,true,false)
textinstance.writeline(ren2)
%>
一般:<%=ren2%>;
<%
countfile1=Server.mappath("bad.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile1,1,false,false)
ren3=textinstance.readall
%>
<P>差:<%=ren3%>;
<%
countfile=Server.mappath("vbad.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile,1,false,false)
ren4=textinstance.readall
%>
很差:<%=ren4%>;

<%
elseif ming="bad" then
countfile=Server.mappath("good.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile,1,false,false)
ren1=textinstance.readall

%>
很好:<%=ren1%>;
<%
countfile1=Server.mappath("yiban.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile1,1,false,false)
ren2=textinstance.readall

%>
一般:<%=ren2%>;
<%
countfile1=Server.mappath("bad.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile1,1,false,false)
ren3=textinstance.readall
ren3=ren3+1
set textinstance=fileinstance.createtextfile(countfile1,true,false)
textinstance.writeline(ren3)
%>
<P>差:<%=ren3%>;
<%
countfile=Server.mappath("vbad.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile,1,false,false)
ren4=textinstance.readall
%>
很差:<%=ren4%>;

<%
elseif ming="vbad" then
countfile=Server.mappath("good.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile,1,false,false)
ren1=textinstance.readall

%>
很好:<%=ren1%>;
<%
countfile1=Server.mappath("yiban.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile1,1,false,false)
ren2=textinstance.readall

%>
一般:<%=ren2%>;
<%
countfile1=Server.mappath("bad.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile1,1,false,false)
ren3=textinstance.readall

%>
<P> 差:<%=ren3%>;
<%
countfile=Server.mappath("vbad.txt")
set fileinstance=Server.CreateObject("SCRIPTING.filesystemobject")
set textinstance=fileinstance.opentextfile(countfile,1,false,false)
ren4=textinstance.readall
ren4=ren4+1
set textinstance=fileinstance.createtextfile(countfile1,true,false)
textinstance.writeline(ren4)
%>
很差:<%=ren4%>;
<%
end if
%>
我Q号_33917259
2010-02-22
知道答主
回答量:24
采纳率:0%
帮助的人:15.5万
展开全部
网上有很多,去网上找找吧。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式