I have an ASP Classic application I am trying to debug. There is a loop that iterates through a form's values and it is not returning the correct information. I added in an alert to show me the counter value but it is throwing an error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "<script language="ja"]'
/WMD/SA/SA_exp.asp, line 14
Here is the code:
for x = 6 to Request.Form.count()-1
response.write("<script language=""javascript"">alert ('""" + x + """'); </script>")
If I put any other variable instead of "x" the alert works. How can I get the value of "x" into an alert?
Request.Form.Countis a Property, not a Method. Refactor the line to beFor x = 6 To Request.Form.Count - 1. - user692942alert ('""" + CStr( x) + """');- JosefZ