代码是对的,<% if answer1="" then answer1=88 else answer1=request("text1") end ifresponse.write answer1 %><script language="javascript"> disp() function show() { window.location="dsyd2.asp?text1=<%=answer1%>&text2=<%=answer2%>"; } function disp() { clock=setTimeout("show()",1200); } </script>
你的answer1和answer2是不是空的啊
先是这样: <script Language="JavaScript"> <!--Hide these preventing old browser to show function show() { window.location="dsyd.asp?"; } function disp() { clock=setTimeout("show()",10000); } //hiding ended--> </script> . . . . . . <input type="radio" value="A" name="text1" >A. a Dutch explorer <input type="radio" value="B" name="text1">B. a British colonist 到了dsyd.asp为什么用request("text1")得不到值.
先看看你地址栏上显示的有值没
if answer1="" then
answer1=88
else
answer1=request("text1")
end ifresponse.write answer1
%><script language="javascript">
disp()
function show()
{
window.location="dsyd2.asp?text1=<%=answer1%>&text2=<%=answer2%>";
}
function disp()
{
clock=setTimeout("show()",1200);
}
</script>
<script Language="JavaScript">
<!--Hide these preventing old browser to show
function show()
{
window.location="dsyd.asp?";
}
function disp()
{
clock=setTimeout("show()",10000);
}
//hiding ended-->
</script>
.
.
.
.
.
.
<input type="radio" value="A" name="text1" >A. a Dutch explorer
<input type="radio" value="B" name="text1">B. a British colonist
到了dsyd.asp为什么用request("text1")得不到值.
但有时候就算什么问题也没有,也可能出这种问题,我也没搞清是什么原因
但可以用别的方式做啊,将要传的值放到隐含字段中,然后提交表单
换成
request.querystring("text1")