request in asp
hello every body,
i've this code:
<input type="button" value=" Edit " name="cmdsave" size=70 onclick="CheckFeilds(<%=rs("id")%>);">
<script>
function sure(){
frmadd.submit();
}
function CheckFeilds(id2){
if (true==true)
{
document.frmadd.id2.value=id2;
sure();
return false;
}
}
</script>
<input name="id2" value="0">
and on the second page:
ID=Request("id2")
Response.Write (ID)
Response.End
but it doesn't print the ID!!!
|