H
Harag
Hi All
Using: JScript
IIS 5
I have a problem in the following code:
// The next 4 lines display exactly what was typed in the text boxes.
out("<br>Request.Form="+ Request.Form("Box1").Item);
out("<br>Request.Form="+ Request.Form("Box2").Item);
out("<br>Request.Form="+ Request.Form("Box3").Item);
out("<br>Request.Form="+ Request.Form("Box4").Item);
out("<br>typeof="+ typeof Request.Form); //returns "object"
// Problem here
for (var i in Request.Form) {
out('Element Text:' + Request.Form(i).Item);
}
[snipped rest]
My Problem is that the for loop is not going through each element of
the form and displaying. it just seems to skip those 3 line and
continues with the code, no errors and no text. The values are stored
in the form elements as the 5 lines of output above clarifies this
fact.
Can anyone spot the problem please???
Thanks.
Al.
Using: JScript
IIS 5
I have a problem in the following code:
// The next 4 lines display exactly what was typed in the text boxes.
out("<br>Request.Form="+ Request.Form("Box1").Item);
out("<br>Request.Form="+ Request.Form("Box2").Item);
out("<br>Request.Form="+ Request.Form("Box3").Item);
out("<br>Request.Form="+ Request.Form("Box4").Item);
out("<br>typeof="+ typeof Request.Form); //returns "object"
// Problem here
for (var i in Request.Form) {
out('Element Text:' + Request.Form(i).Item);
}
[snipped rest]
My Problem is that the for loop is not going through each element of
the form and displaying. it just seems to skip those 3 line and
continues with the code, no errors and no text. The values are stored
in the form elements as the 5 lines of output above clarifies this
fact.
Can anyone spot the problem please???
Thanks.
Al.