| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 341 人关注过本帖
标题:有问题问
只看楼主 加入收藏
cf2001_81
Rank: 1
等 级:新手上路
帖 子:39
专家分:0
注 册:2007-1-2
收藏
 问题点数:0 回复次数:1 
有问题问

index.asp文件
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网络投票系统</title>
<link rel="stylesheet" type="text/css" href="../vote/css.css">
</head>

<body>
<p align="center" style="line-height: 200%; margin-top: 20; margin-bottom: 20">
<font size="7">网络投票系统</font>
<hr>
<p></p>
<div align="center">
<table border="0" width="50%" id="table1" cellspacing="1" cellpadding="3" class="tableborder">
<tr>
<td>
<p align="center"><font size = 3>最佳男歌手</font></p>
</td>
</tr>
<tr>
<td align="center" class="tablebody1" nowrap>
<p style="line-height: 100%">
<form action=vote.asp method=post name=formResearch>
<div align=center>
<table border=0 cellspacing=1 cellpadding=3 width="96">
<tr>
<td nowrap width="84" 50%""><input type=radio name="elect" value="1">周杰伦</td>

</tr>
<tr>
<td nowrap width="84" 50%""><input type=radio name="elect" value="2">张学友</td>
</tr>
<tr>
<td nowrap width="84" 50%""><input type=radio name="elect" value="3">刘德华</td>
</tr>
<tr>
<td nowrap width="84" 50%""><input type=radio name="elect" value="4">孙楠</td>
</tr>
</table>
</div>
<table border=0 width=240 cellspacing=1 cellpadding=3>
<tr>
<td align=center width="228"><input type=submit name=submit value=投票> <input type=submit name=submit value=查看结果></td>
</tr>
<tr>
<td align=center nowrap width="228">Powered By : 网上投票 2005<br>CopyRight 2004-2006</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</div>
</body>
</html>

2007-04-07 19:19
cf2001_81
Rank: 1
等 级:新手上路
帖 子:39
专家分:0
注 册:2007-1-2
收藏
得分:0 

<%
If Request.Form("submit") = "投票" Then
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>投票结果</title>
<link rel="stylesheet" type="text/css" href="../vote/css.css">
</head>

<body topmargin="0" leftmargin="0">
<%
Application.Lock
id = Request.Form("elect")
Application(id)=Application(id)+1
Application.Unlock
%>
<p align="center" style="margin-top: 10"><font size="5">
投票成功!</font>
<br>
<br>
<br>
<br>
<br>
<br>
<div align="center">
<a href = "index.asp">返回</a>
</div>
</body>
</html>
<%
ElseIf Request.Form("submit") = "查看结果" Then
Response.Redirect "view.asp"
End If
%>
上面的一段程序 有两个按钮”提交””查看结果”
点击”提交”到vote.asp页面 
点击”查看结果”到view.asp页面
现在是点击哪个都到vote.asp页面 点击”查看结果”无法跳转到view.asp页面
为什么呀?请帮忙指点!

2007-04-07 19:20
快速回复:有问题问
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.021093 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved