But I want to use that value in the same page. Such as
<Form action=test.asp Name=form1>
<input name="size">
<input name="total">
<input Type=botton Onclick=Myfunction()>
...
</form>
<Script>
function Myfunction() {
<%SQL="Select value1...Where a=%> document.form1.size.value
<%...%>

<%a=qs("value1")%>
document.form1.total.value=<%=a%>
}
</Script>