W
Walter
Hi,
The user has to type his name into input a input field (type = text).
This name must be passed to another ASP file.
I did this but nothing happened:
<form id=ins method="post" onsubmit="return doit()">
Type your name:<input id=txt1 type="text">
<INPUT id=smt TYPE="submit">
</form>
....
function doit()
{
document.getElementById("ins").action="file2.asp"
return true;
}
....
When the user types his name and clicks on the submit button, it goes to
file2.asp but the request.form("txt1") is empty.
Do i have to use "hidden" input type instead?
Thanks
Walter
The user has to type his name into input a input field (type = text).
This name must be passed to another ASP file.
I did this but nothing happened:
<form id=ins method="post" onsubmit="return doit()">
Type your name:<input id=txt1 type="text">
<INPUT id=smt TYPE="submit">
</form>
....
function doit()
{
document.getElementById("ins").action="file2.asp"
return true;
}
....
When the user types his name and clicks on the submit button, it goes to
file2.asp but the request.form("txt1") is empty.
Do i have to use "hidden" input type instead?
Thanks
Walter