A1VBCode Forums

I am getting ASP problem


http://www.a1vbcode.com/vbforums/Topic26593.aspx

By khan - 12/29/2008

I am working in with PHP, BUT, in ASP I get

the following error. Please help!



Microsoft Vb Script compilation error '800a0401'



Expected end of statement



/join_process.asp, line 54



Dim httpRequest As System.Net.HttpWebRequest =

CType(System.Net.WebRequest.Create("http://protectwebform.com/verify/1545_mfkj0t9db3h5_"

+ Request.UserHostAddress + "/" + Request.Form("protectwebformcode") +

"/"), System.Net.HttpWebRequest)
By MaslowB - 1/2/2009

you need a _ at the end of any run-on lines



Vb expects all statement to be a single line or have a _ at the end to let it know this code takes should also use the line below it.





Dim httpRequest As System.Net.HttpWebRequest = _

CType(System.Net.WebRequest.Create("http://protectwebform.com/verify/1545_mfkj0t9db3h5_" _

+ Request.UserHostAddress + "/" + Request.Form("protectwebformcode") _

+ "/"), System.Net.HttpWebRequest)