<input type="radio" name="sSex" value="1">
x = request.form("sSex")
response.write(x)
为什么x总是空的呢?
<form method="get" name="1" action="">
<input type="text" name="text" value="a">
<input type="radio" name="radio" value="b">
<input type="radio" name="radio" value="c">
<input type="submit">
</form>
<%
dim x,y
x = request("text")
response.write(x)
y = request("radio")
response.write(y)
%>
显示不出y的值,但x的值能取到
为什么????
[此贴子已经被作者于2005-12-8 23:42:15编辑过]
<head>
<script language="javascript">
function radioTest()
{
for(var i=0;i<document.1.radioTest.length;i++)
{
if(document.1.radioTest[i].checked)
{
document.1.radio.value=document.1.radioTest[i].value;
}
}
}
</script>
</head>
<form action="">
<input type="radio" name="radioTest" value="b" onClick=radioTest()>
<input type="radio" name="radioTest" value="c" onClick=radioTest()>
<input type="hidden" name="radio">
<input type="submit">
</form>
<%dim x
x = request("radioText")
response.write(x)
%>
x页面显示不出x的值,使用action="1.asp"
把<%dim x
x = request("radioText")
response.write(x)
%>
放在1.asp中x也是空的,
为什么???
<head>
<script language="javascript">
function radioTest()
{
for(var i=0;i<document.1.radioTest.length;i++)
{
if(document.1.radioTest[i].checked)
{
document.1.radio.value=document.1.radioTest[i].value;
}
}
}
</script>
</head>
<form action="" name="1">
<input type="radio" name="radioTest" value="b" onClick=radioTest()>
<input type="radio" name="radioTest" value="c" onClick=radioTest()>
<input type="hidden" name="radio">
<input type="submit">
</form>
<%dim x
x = request("radioText")
response.write(x)
%>
还是不对,网页可以浏览,但有提示错误.
行: 5
字符: 26
错误: 缺少 ';'
代码: 0
URL: http://localhost/xxx/新建%20文本文档.asp?radio=
其中url是我的虚拟目录
[此贴子已经被作者于2005-12-9 17:41:07编辑过]