令人抓狂的问题

erdong988 2008-09-01 10:26:40
实现修改功能,用form提交数据给另一页
按下提交按钮后,总是不能转到处理页,form中的数据出现在了地址栏里……
各位遇到过这种情况吗?
...全文
165 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
erdong988 2008-09-01
  • 打赏
  • 举报
回复
加上“trim”问题依旧
egg_server 2008-09-01
  • 打赏
  • 举报
回复
tmtype=trim(request("tmtype"))

erdong988 2008-09-01
  • 打赏
  • 举报
回复
先汗一个
发现自己把form中的“action”写成“actiom”了……

又遇到怪问题了……
<form name="flform" mothod="post" action="xt_manageexe.asp?tmtype=fff">

tmtype=request("tmtype")
if tmtype="intro" then
call saveintro()
elseif tmtype="gg" then
call savegg()
elseif tmtype="fff" then
response.write "进来了"
rensponse.end
call savefl()
else
response.write "对不上?"
response.end
'response.redirect "index.asp"
end if

为啥就是 “对不上?”呢???
laidezhong 2008-09-01
  • 打赏
  • 举报
回复
<form method="post" action="xx">
</form>

PS:IE8 beta2下,点修改弹出的lightbox显示有错误
jhwcd 2008-09-01
  • 打赏
  • 举报
回复
表单用post提交吧,你可能用GET提交了。
sy_binbin 2008-09-01
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 laidezhong 的回复:]
method="post" 写在form里
[/Quote]
laidezhong 2008-09-01
  • 打赏
  • 举报
回复
method="post" 写在form里
Anlige 2008-09-01
  • 打赏
  • 举报
回复
method~
erdong988 2008-09-01
  • 打赏
  • 举报
回复
惭愧啊 惭愧
又是这种低级错误 结贴了
xie_yanke 2008-09-01
  • 打赏
  • 举报
回复
mothod="post" ------> method
anbs01 2008-09-01
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 jhwcd 的回复:]
表单用post提交吧,你可能用GET提交了。
[/Quote]
erdong988 2008-09-01
  • 打赏
  • 举报
回复
完整的form如下:

<form name="flform" mothod="post" action="xt_manageexe.asp?tmtype=fff">
<table width=96% border="0" align="center" cellpadding="0" cellspacing="1" bgcolor=blue>
<tr height=40 bgcolor=#f1f1f1>
<td align=center colspan=3><strong> 友 情 连 接 管 理 </strong></td></tr>
<% for fli=0 to 9 %>
<tr height=35 bgcolor=#f1f1f1>
<td align=center width=50><%=fli+1%></td>
<td width=250> 标题: <input name=flname<%=fli%> type=text size=30 value="<%=myfl(fli,1)%>"></td>
<td> 连接: <input name=fllink<%=fli%> type=text size=40 value="<%=myfl(fli,0)%>"></td>
</tr>
<% next %>
<tr height=40 bgcolor=#f1f1f1><td colspan=3 align=center>
<input name="imageField" type="image" src="user/sub.gif" width="40" height="14" border="0">
<input name=teamid type=hidden value="<%=teamid%>">
</td></tr>
</table>
</form>
erdong988 2008-09-01
  • 打赏
  • 举报
回复
[Quote=引用 12 楼 Anlige 的回复:]
rensponse.end
call savefl()
这句end之后的就不执行了~
call savefl() 没有任何意义~

你用request.querystring("tmtype")试试~尽量不要直接用request来取值~
[/Quote]
response.end 是临时加上测试的
用request.querystring("tmtype"),问题依旧,tmtype没值.....
Anlige 2008-09-01
  • 打赏
  • 举报
回复
rensponse.end
call savefl()
这句end之后的就不执行了~
call savefl() 没有任何意义~

你用request.querystring("tmtype")试试~尽量不要直接用request来取值~
erdong988 2008-09-01
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 loucc 的回复:]
你查看一下值有没有传递过来先。传递过来后又是什么?
[/Quote]
tmtype 为空
tmtype为其它值时,就有值,运行正常;方法与值为“fff”时相同。

特殊之处就是 值为“fff”时form包含如下代码,这也没问题吧?

<% for fli=0 to 9 %>
<tr height=35 bgcolor=#f1f1f1>
<td align=center width=50><%=fli+1%></td>
<td width=250> 标题: <input name=flname<%=fli%> type=text size=30 value="<%=myfl(fli,1)%>"></td>
<td> 连接: <input name=fllink<%=fli%> type=text size=40 value="<%=myfl(fli,0)%>"></td>
</tr>
<% next %>
loucc 2008-09-01
  • 打赏
  • 举报
回复
你查看一下值有没有传递过来先。传递过来后又是什么?
不耐烦 2008-09-01
  • 打赏
  • 举报
回复
asp
elseif没错
我给你写个页面测试
新建立一个txt.asp 代码如下
<form id="form1" name="form1" method="post" action="txt.asp?tmtype=yes">
<input type="submit" name="button" id="button" value="提交" /><!--要有提交按钮-->
</form>
<%
if request.QueryString("tmtype")="a" then
response.Write "值:a"
elseif request.QueryString("tmtype")="b" then
response.Write "值:b"
elseif request.QueryString("tmtype")="c" then
response.Write "值:c"
else
response.Write"没值"
end if
%>
我没调试
egg_server 2008-09-01
  • 打赏
  • 举报
回复
if tmtype="intro" then
call saveintro()
else if tmtype="gg" then
call savegg()
else if tmtype="fff" then
response.write "进来了"
rensponse.end
call savefl()
else
response.write "对不上?"
response.end
'response.redirect "index.asp"
end if

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧