J
jethro_uk
Hi there,
I have a bizarre problem with FORM variables in ASP.
Scenario using VI6, IE6, Windows2000 server:
MyPage.ASP:
..
..
..
<FORM method=POST action=Process.ASP id=frmDetails>
<INPUT name=txtName id=txtName type=text>
<INPUT name=txtAddress id=txtName type=text>
</FORM>
..
..
..
If this form is submitted, then i can inspect Request.Form in the
debugger, and both variables are there.
Now, I have a 3rd form, which is called by a "javascript:window.open"
call, with txtName.value as a parameter. This form queries a database,
and presents a list of possible addresses to match "name". When one is
selected, it goes :
..
..
..
window.opener.txtAddress.value=<value>
..
..
..
however, when MyPage.ASP is then submuitted, txtAddress doesn't get
sent across.
I have tried using method=GET to inspect the URL, but txtAddress is not
being passed.
Intercepting the submit, and doing an "alert(txtAddress.value)" shows
that txtAddress is correctly populated (I knew it was anyway, since I
can see it's contents on the page), however, the
"Request.FOrm("txtAddress") is returning nothing.
Can anyone help, I have tried googling, but found nothing specific to
my problem.
thanks in advance
J
I have a bizarre problem with FORM variables in ASP.
Scenario using VI6, IE6, Windows2000 server:
MyPage.ASP:
..
..
..
<FORM method=POST action=Process.ASP id=frmDetails>
<INPUT name=txtName id=txtName type=text>
<INPUT name=txtAddress id=txtName type=text>
</FORM>
..
..
..
If this form is submitted, then i can inspect Request.Form in the
debugger, and both variables are there.
Now, I have a 3rd form, which is called by a "javascript:window.open"
call, with txtName.value as a parameter. This form queries a database,
and presents a list of possible addresses to match "name". When one is
selected, it goes :
..
..
..
window.opener.txtAddress.value=<value>
..
..
..
however, when MyPage.ASP is then submuitted, txtAddress doesn't get
sent across.
I have tried using method=GET to inspect the URL, but txtAddress is not
being passed.
Intercepting the submit, and doing an "alert(txtAddress.value)" shows
that txtAddress is correctly populated (I knew it was anyway, since I
can see it's contents on the page), however, the
"Request.FOrm("txtAddress") is returning nothing.
Can anyone help, I have tried googling, but found nothing specific to
my problem.
thanks in advance
J