我在代码中有个<input type=text name=PageNo size=3 value="" >表单域
然后在<a href="dispose_demand.asp?>GO</a>语句中我要把表单域中输入的值传到处理代码中如何取得这个值呢?
就是在<a href="dispose_demand.asp?。。。。。。。。 >GO</a>红色的部分取得这个值!
请大家帮帮忙下 谢谢
PS:不能刷新页面后再取值哦
什么是域的值啊???
问号后面带参数 带变量
因为我还有其它值要一起传过去,我这样写哪里有问题哦?我输入想转的页数,但页面始终在第一页 麻烦再帮我看下哦 谢谢
<a href="#" onclick="window.location='dispose_demand.asp?flag=<%="Q"%>&MAJOR_IDEA=<%=MAJOR_IDEA%>&APPLY_TIME_start=<%=APPLY_TIME_start%>&APPLY_TIME_end=<%=APPLY_TIME_end%>&WISH_FINISH_TIME_start=<%=WISH_FINISH_TIME_start%>&WISH_FINISH_TIME_end=<%=WISH_FINISH_TIME_end%>&IT_UNDERTAKER=<%=IT_UNDERTAKER%>&PHASE=<%=PHASE%>&page='+ dispose_demand.PageNo.value;">GO</a>
<input type=text id="pageno" name="PageNo" size="3" onkeyup="value=value.replace(/[\D]/g,'')">
<a href="#" onclick="aa()">GO</a>
<script language="javascript">
function aa(){
toto=document.getElementById("pageno").value
if(toto!=""){
location.replace("dispose_demand.asp?flag=<%=Q%>&MAJOR_IDEA=<%=MAJOR_IDEA%>&APPLY_TIME_start=<%=APPLY_TIME_start%>&APPLY_TIME_end=<%=APPLY_TIME_end%>&WISH_FINISH_TIME_start=<%=WISH_FINISH_TIME_start%>&WISH_FINISH_TIME_end=<%=WISH_FINISH_TIME_end%>&IT_UNDERTAKER=<%=IT_UNDERTAKER%>&PHASE=<%=PHASE%>&page="+toto)
}else{alert("请输入页数")}
}
</script>
改了下
[此贴子已经被作者于2007-7-24 17:29:09编辑过]
[CODE]<input type=text id="pageno" name="PageNo" size="3" onkeyup="value=value.replace(/[\D]/g,'')">
<a href="#" onclick="aa()">GO</a>
<script language="javascript">
function aa(){
if(aabb!=""){
toto=document.getElementById("pageno").value
location.replace("dispose_demand.asp?flag=<%=Q%>&MAJOR_IDEA=<%=MAJOR_IDEA%>&APPLY_TIME_start=<%=APPLY_TIME_start%>&APPLY_TIME_end=<%=APPLY_TIME_end%>&WISH_FINISH_TIME_start=<%=WISH_FINISH_TIME_start%>&WISH_FINISH_TIME_end=<%=WISH_FINISH_TIME_end%>&IT_UNDERTAKER=<%=IT_UNDERTAKER%>&PHASE=<%=PHASE%>&page="+toto)
}else{alert("请输入页数")}
}
</script>[/CODE]