I have inherited a ASP site using the old style ASP and only changed several lines in the form handler, but now I keep getting this error:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/sendmail/sendit_functions.asp, line 5
I have not altered that page at all so I am confused as to why it would say there is an error on that page.
The code in reference actually reads:
The actual code in context is:
The odd part that I can't figure out is where did the "v" come from. As I see it that would be a string, but there is no reference to "v" on any other pages.
I have been studying this for hours and going through all the online information I could find as well as my copy of VBscript Programmer's Reference by Wrox it covers VBscript 5 so not sure how much help that has any chance of helping with this.
Thanks in advance to anyone able to shed light on this for me.
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/sendmail/sendit_functions.asp, line 5
I have not altered that page at all so I am confused as to why it would say there is an error on that page.
The code in reference actually reads:
Code:
execute "v" & Request.Form.Key(x) & " = " & "" & Request.Form.Item(x) & ""Code:
Sub GetFormVars()
For x = 1 to Request.Form.Count
execute "v" & Request.Form.Key(x) & " = " & "" & Request.Form.Item(x) & ""
Next
End SubThe odd part that I can't figure out is where did the "v" come from. As I see it that would be a string, but there is no reference to "v" on any other pages.
I have been studying this for hours and going through all the online information I could find as well as my copy of VBscript Programmer's Reference by Wrox it covers VBscript 5 so not sure how much help that has any chance of helping with this.
Thanks in advance to anyone able to shed light on this for me.