JS 里面的Onchang触发事件时怎么把表单的值赋给ASP里面的条件啊?从而使得where 成立
<script language= "JavaScript " type= "text/JavaScript ">
function level_price(){
start=parseInt(document.form1.startleve.value)
end=parseInt(document.form1.endleve.value)
if(start > end){
document.getElementById( 'errorbox ').innerHTML= " <b> Desired level is false </b> ";
return false;
}else{
document.getElementById( 'errorbox ').innerHTML= " ";
<%
Set rs_start=Server.CreateObject( "Adodb.RecordSet ")
rs_start.Open "select * from mmoga_powerleve_price where pp_play = ' "& Request( "p ") & " ' and pp_frank= ' "& Request( "franname ") & " ' and pp_jibie= ' "& request( "startleve ") & " ' " ,conn,1,1
Set rs_end=Server.CreateObject( "Adodb.RecordSet ")
rs_end.Open "select * from mmoga_powerleve_price where pp_play = ' "& Request( "p ") & " ' and pp_frank= ' "& Request( "franname ") & " ' and pp_jibie= ' "& request( "endleve ") & " ' " ,conn,1,1
Set rs_pr=Server.CreateObject( "Adodb.RecordSet ")
rs_pr.Open "select * from mmoge_power_price where mp_play= ' "& request( "p ") & " ' " ,conn,1,1
leve_hour=csng(rs_end( "pp_time ")) - csng(rs_start( "pp_time "))
leve_price=leve_hour * rs_pr( "mp_price ")
price=leve_price
IF Request.Cookies( "money_tae ") <> " " Then
price_c= round(price * Request.Cookies( "money_tae "),2)
Else
price_c= price
End IF
IF Request.Cookies( "money_zifu ") <> " " Then
mbz= Request.Cookies( "money_zifu ")
Else
mbz= rs_pr( "mp_price_bz ")
End IF
%>
document.form1.leve_price.value= " <%= price_c %> ";
document.form1.leve_time.value= " <%= leve_hour %> ";
document.getElementById( 'money ').innerHTML= "( <%= mbz %> ) ";
return false;
}
return true
}
</script>
&nb