
求助啊!ASP中无法提取前一页中的下拉菜单的值,不知道为什么。求大神帮助啊 10
<formname="Modfiyform"method="post"action="trybook.asp"><tr><tdheight="30"colspan="4"...
<form name="Modfiyform" method="post" action="trybook.asp" >
<tr>
<td height="30" colspan="4"><div align="center"><font color="#0000FF"><%=Session("Dbexamname")%></font></div></td>
</tr>
<tr>
<td width="93" height="25"><div align="center">案 卷:</div></td>
<td colspan="3"><textarea name="subject" cols="60" rows="5" readonly="readonly" id="subject"><%=trySubject%></textarea></td>
</tr>
<tr>
<td height="28"><div align="center">办理地区:</div></td>
<td height="28" colspan="3">
<label>
<input name="selectR" type="text" id="selectR" value="<%=tryselectR%>" size="50" readonly="readonly">
</label></td>
</tr>
<tr>
<td height="25" colspan="3">选择评查项目:</td>
<td width="380"><select name="selectT" id="selectT">
<%
listName="Select ID,Wproject from Project"
set rT=conn.execute(listName)
while not rT.eof
ExamID=rT("ID")
ExamName=rT("Wproject")
response.Write("<option value='"&ExamID&"'>"&ExamName&"</option>")
rT.movenext
wend
%>
</select></td>
</tr>
<tr>
<td height="30" colspan="4"><div align="center">
<table width="86%" border="0" cellpadding="0" cellspacing="0" class="Xsmall">
<tr>
<td><div align="center">
<input name="Submit" type="submit" class="Sborder" value="确 定">
</div></td>
<td><div align="center">
<input name="reset" type="reset" class="Sborder" id="reset" value="重 写">
</div></td>
<td><div align="center">
<input name="back" type="button" class="Sborder" id="back" value="返 回" >
</div></td>
<td><div align="center"><input name="checklist" type="submit" class="Sborder" id="checklist" onClick="MM_goToURL('parent','check_try.asp');return document.MM_returnValue" value="查看已经评查的项目"></div></td>
</tr>
</table>
</div></td>
</tr>
</form>
这个是前一个页面中form中的代码!像通过点击到按钮查看已经评查的项目,但是在跳转的界面无法提取到这一个页面中的selectT的值,求大神帮忙解决下!request.form("selectT")这个提取不了啊! 展开
<tr>
<td height="30" colspan="4"><div align="center"><font color="#0000FF"><%=Session("Dbexamname")%></font></div></td>
</tr>
<tr>
<td width="93" height="25"><div align="center">案 卷:</div></td>
<td colspan="3"><textarea name="subject" cols="60" rows="5" readonly="readonly" id="subject"><%=trySubject%></textarea></td>
</tr>
<tr>
<td height="28"><div align="center">办理地区:</div></td>
<td height="28" colspan="3">
<label>
<input name="selectR" type="text" id="selectR" value="<%=tryselectR%>" size="50" readonly="readonly">
</label></td>
</tr>
<tr>
<td height="25" colspan="3">选择评查项目:</td>
<td width="380"><select name="selectT" id="selectT">
<%
listName="Select ID,Wproject from Project"
set rT=conn.execute(listName)
while not rT.eof
ExamID=rT("ID")
ExamName=rT("Wproject")
response.Write("<option value='"&ExamID&"'>"&ExamName&"</option>")
rT.movenext
wend
%>
</select></td>
</tr>
<tr>
<td height="30" colspan="4"><div align="center">
<table width="86%" border="0" cellpadding="0" cellspacing="0" class="Xsmall">
<tr>
<td><div align="center">
<input name="Submit" type="submit" class="Sborder" value="确 定">
</div></td>
<td><div align="center">
<input name="reset" type="reset" class="Sborder" id="reset" value="重 写">
</div></td>
<td><div align="center">
<input name="back" type="button" class="Sborder" id="back" value="返 回" >
</div></td>
<td><div align="center"><input name="checklist" type="submit" class="Sborder" id="checklist" onClick="MM_goToURL('parent','check_try.asp');return document.MM_returnValue" value="查看已经评查的项目"></div></td>
</tr>
</table>
</div></td>
</tr>
</form>
这个是前一个页面中form中的代码!像通过点击到按钮查看已经评查的项目,但是在跳转的界面无法提取到这一个页面中的selectT的值,求大神帮忙解决下!request.form("selectT")这个提取不了啊! 展开
展开全部
先看一下你的ExamID是否为空
("<option value='"&ExamID&"'>"&ExamName&"</option
("<option value='"&ExamID&"'>"&ExamName&"</option
更多追问追答
追问
在跳转到的界面(check_try.asp)中这整个界面中的值都是空的!不知道为什么。但是如果是在form中的活动界面的action=“trybook.asp”中这些值就全部都有。在“check_try.asp”中的都没有form的值!
追答
大哥,你要跳转到哪啊,看ACTION=trybook.asp!
你都没传到 check_try.asp,怎么可能会有
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
用ID>当前ID值来作比较即可显示了!
追问
嗯嗯……那这个应该怎么做呢?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你先看下<%=ExamID%>是否为空
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询