求助,怎样获得表单table中select的取值,代码如下:请高手看看!!着急!
<script type="text/javascript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="379" border="1">
<tr>
<td colspan="2"><select name="item" id="item">
<option value="2">kjkk</option>
<option value="1">cccx</option>
</select>
</td>
<td width="239"> </td>
</tr>
<tr>
<td width="59"> </td>
<td width="59"> </td>
<td><input name="query" type="image" id="query" onclick="MM_goToURL('parent','file:///D|/project/DC/dcprj/from_dataup.asp?quereso='+document.all.forms[0].item.value);return document.MM_returnValue" src="file:///D|/project/DC/dcprj/img/snap.gif" /></td>
</tr>
</table>
</form>
</body>
</html>
上面写的不对啊!
想用url通过request传出去,然后保存在session中,不知道怎么写,请高手看看!!!