Hi. I'm having trouble passing a variables. This is what I'm doing:
newacct1.asp
login page passing form values with post method
newacct2.asp
checks our DB for Agreement = 0 or 1
if 0 go to agreement.asp
else go to newacct3.asp
currently doesn't check password, another problem i'll have to deal with after this.
<%@ LANGUAGE="VBScript" %>
<!-- #include file = "wli.inc" -->
<%
SET NewID = Request.Form("LoginID"
set objConn = Server.CreateObject("ADODB.Connection"
objConn.Open strConnection
Set LoginRS = Server.CreateObject("ADODB.Recordset"
SQL = "SELECT * FROM tbl WHERE (BillID = '" & NewID & "')"
LoginRS.Open SQL, objConn, 1
If Trim(LoginRS("Agree") = 1 Then
Response.Write "<FORM METHOD='post' ACTION='newacct3.asp'>"
Response.Write "<INPUT TYPE='Hidden' NAME='LoginID' VALUE='" & Trim("BillID" & "'>"
Response.Write "</FORM>"
Response.Redirect "newacct3.asp"
Else
Response.Redirect "agreement.asp"
End If
%>
error:
Response object error 'ASP 0156 : 80004005'
Header Error
/testsite/newacct2.asp, line 15
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
Thanks in advance.
newacct1.asp
login page passing form values with post method
newacct2.asp
checks our DB for Agreement = 0 or 1
if 0 go to agreement.asp
else go to newacct3.asp
currently doesn't check password, another problem i'll have to deal with after this.
<%@ LANGUAGE="VBScript" %>
<!-- #include file = "wli.inc" -->
<%
SET NewID = Request.Form("LoginID"
set objConn = Server.CreateObject("ADODB.Connection"
objConn.Open strConnection
Set LoginRS = Server.CreateObject("ADODB.Recordset"
SQL = "SELECT * FROM tbl WHERE (BillID = '" & NewID & "')"
LoginRS.Open SQL, objConn, 1
If Trim(LoginRS("Agree") = 1 Then
Response.Write "<FORM METHOD='post' ACTION='newacct3.asp'>"
Response.Write "<INPUT TYPE='Hidden' NAME='LoginID' VALUE='" & Trim("BillID" & "'>"
Response.Write "</FORM>"
Response.Redirect "newacct3.asp"
Else
Response.Redirect "agreement.asp"
End If
%>
error:
Response object error 'ASP 0156 : 80004005'
Header Error
/testsite/newacct2.asp, line 15
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
Thanks in advance.