如何让显示时候的内容在提交后,是提交时改变的数值

chengsetianxie 2004-11-30 04:03:17
<form Method="post" action="12.asp" id="form1" name="form1">
<input type=hidden name="value1" >
<select name="test" size="1" onchange="vbscript:gets()">

<option>1</option>
<option>2</option>
<option>3</option>
</select>
</form>

现在默认显示的是1
当用户选择了3并且提交了
现在我想让这个表单默认显示的是3
如果用户选择了2,那么以后默认显示就使2
该如何实现啊
哈哈没分了
不好意思啊

...全文
105 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
suhongwei 2004-12-03
  • 打赏
  • 举报
回复
来迟了!
chengsetianxie 2004-12-01
  • 打赏
  • 举报
回复
哈哈
大哥谢谢啊
真的没有分了啊
我记住你了
下次我一定给你满分啊
llix_cm 2004-11-30
  • 打赏
  • 举报
回复
晕,是0分帖,楼主不厚道啊。算我上面没写
llix_cm 2004-11-30
  • 打赏
  • 举报
回复
给select赋值啊
<%
test=request.form("test")
%>
<form Method="post" action="12.asp" id="form1" name="form1">
<input type=hidden name="value1" >
<select name="test" size="1" onchange="vbscript:gets()">
<option <%if test=1 then response.write "selected"%>>1</option>
<option <%if test=2 then response.write "selected"%>>2</option>
<option <%if test=3 then response.write "selected"%>>3</option>
</select>
</form>

28,409

社区成员

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

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