I have a silly question. It has been some time since I have programmed asp. I have the below code and I keep getting the error "Expected statement" I know the code works, my problem is that I am combining html and asp. As soon as I take out the <html>, test page, and </html> is works. Please help.
<html>
test page
<%
OPTION EXPLICIT
%>
<!--#include file="includes/connectionstring.asp"-->
<%
dim strSQL
dim i
'Open empty recordset to add data to table
strSQL = "SELECT * FROM test_web where 1=0;"
oRS.Open strSQL, dbConn, 1, 3, 1
oRS.AddNew
'loop through fields in pdf file and populate record set
for i = 1 to 3
oRS(i) = request.form(i)
next
ors.update
ors.close
%>
</html>
<html>
test page
<%
OPTION EXPLICIT
%>
<!--#include file="includes/connectionstring.asp"-->
<%
dim strSQL
dim i
'Open empty recordset to add data to table
strSQL = "SELECT * FROM test_web where 1=0;"
oRS.Open strSQL, dbConn, 1, 3, 1
oRS.AddNew
'loop through fields in pdf file and populate record set
for i = 1 to 3
oRS(i) = request.form(i)
next
ors.update
ors.close
%>
</html>