提交表单同时传值的问题 高手帮我

feibenzu 2007-05-19 10:42:12
如何在提交表单时,同时把
<%
huiname=request.QueryString("huiname")
%>中的huiname传到 addliuyan.asp?????高手帮帮我


<html>
<head>
<title>无标题文档</title>

</head>

<body>

<%
huiname=request.QueryString("huiname")
%>

<form method="post" name="form" action="addliuyan.asp?" onSubmit="return check()">
<table cellpadding="0" cellspacing="0" width="330" height=270 border="0" background="picture/222.gif">
<tr>
<td height="30" valign="bottom" align="left"> 请填写留言内容:</td>
</tr>
<tr>
<td align="center"><textarea name="content" cols="40" rows="13"></textarea></td>
</tr>
<tr>
<td height="30" align="center"><input type="submit" name="Submit" value="提交"><input name="Submit" type="reset" value="重置"></td>
</tr>
</table></form>
</body>
</html>
...全文
302 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
wcwtitxu 2007-06-03
  • 打赏
  • 举报
回复
楼上的正确
sky911911 2007-06-03
  • 打赏
  • 举报
回复
action="addliuyan.asp?huiname=<%=request.QueryString("huiname")%>" 不安全吧!
youyi000 2007-06-03
  • 打赏
  • 举报
回复
action="addliuyan.asp?huiname=<%=request.QueryString("huiname")%>" 这样肯定对

就是这种方法对,不过取得这个参数时也要用request.QueryString或request,不能通过request.form来得到
shandafenxiao 2007-06-01
  • 打赏
  • 举报
回复
action="addliuyan.asp?huiname=<%=request.QueryString("huiname")%>" 这样肯定对
子乔 2007-05-19
  • 打赏
  • 举报
回复
或者是在aaaa.asp页面中加一个隐藏域
<input type="hidden" name="huiname" value="&request.QueryString("huiname")&">
在addliuyan.asp页面中调用时用:huiname=request.QueryString("huiname")
子乔 2007-05-19
  • 打赏
  • 举报
回复
在表单页面:session("huiname")=request.QueryString("huiname")
在aaaa.asp,addliuyan.asp这两个页面中用到huiname时,直接用session("huiname")就可以了
xuyan9927 2007-05-19
  • 打赏
  • 举报
回复
action="addliuyan.asp?huiname="&huiname&""
feibenzu 2007-05-19
  • 打赏
  • 举报
回复
action="addliuyan.asp?huiname=<%request.QueryString("huiname")%>" 这样不行的,有其它办法吗???
Ischema 2007-05-19
  • 打赏
  • 举报
回复
现在有两个处理页面addliuyan.asp和aaaa.asp和一个提交页面(就是表单页面)
表单点提交按扭后提交到aaaa.asp处理,但同时要求addliuyan.asp页面也能处理表单传过来的bb值:
  解决,把值传到aaaa.asp页面后,再转到addliuyan.asp页面,这样做不可以么!?
子乔 2007-05-19
  • 打赏
  • 举报
回复
可以把request.QueryString("huiname")保存到session中,在另外一个页面直接调用
forestb 2007-05-19
  • 打赏
  • 举报
回复
<form method="post" name="form" action="addliuyan.asp?huiname=<%request.QueryString("huiname")%>" onSubmit="return check()">

form中的action连接改改就可以了

28,389

社区成员

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

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