I have one form and on the submit event I would like to add a hidden field and use it in the next page with the new value I assign to the value used in the input field.
The problem is that even though I assign the value, it is not contained in the form after the submit.
Any idea ?
page1.asp
------------------------------------------------------
<form method = "post" name="tekst" onsubmit="test()">
<input type = "submit" value = "submit">
</form>
<script language="vbscript">
sub test()
bla="values"
tekst.innerhtml = tekst.innerhtml & " <input type=hidden
name='bla' value=" & bla
document.tekst.action="test.asp"
document.tekst.submit()
end sub
</script>
page2.asp
-----------------------------------------------------
<%
z=request.form("bla"
response.write z
%>
The problem is that even though I assign the value, it is not contained in the form after the submit.
Any idea ?
page1.asp
------------------------------------------------------
<form method = "post" name="tekst" onsubmit="test()">
<input type = "submit" value = "submit">
</form>
<script language="vbscript">
sub test()
bla="values"
tekst.innerhtml = tekst.innerhtml & " <input type=hidden
name='bla' value=" & bla
document.tekst.action="test.asp"
document.tekst.submit()
end sub
</script>
page2.asp
-----------------------------------------------------
<%
z=request.form("bla"
response.write z
%>