谢谢gupiao157高手:
您的回答使我增长了见识,但还有一点问题,就是aid=1。为什么变量变成了aid,而且等于1?请高手再予以帮助。原有的程序如下:
……
<select size="1" name="stuname" onchange="OnFee()">
……
<Script Language="JavaScript">
function OnFee(){
var a,b;
var av,bv;
var url;
a = document.form1.coursename.selectedIndex;
av = document.form1.coursename.value;
b = document.form1.stuname.selectedIndex;
bv = document.form1.stuname.value;
if(av > 0){
url = "&cid=" + av;
}
if(bv > 0){
url = url + "&sid=" + bv;
}
form1.action = "FeeList.asp?aid=1" + url;
form1.submit();
}
</Script>