I have a application I am trying to pass form data to a form
processing page and redirect to another page. I am having trouble
passing the form data to the rediredted page. I tried sending as a
hidden field but the next page doesn't get the data. I have
verified the fields are getting this far. HERE'S THE
CODE FROM THE FORM PROCESSING PAGE:
*********************************************************************
**
<%
dim strWeighinUserID
dim strWeighinPassword
strWeighinUserID = Request.form("WeighinUserID")
strWeighinPassword = Request.form("WeighinPassword")
%>
<!-- Establish the recordset for the database -->
<!--#include file="Includes/LoginRecSet.asp" -->
<%
'====> Check for valid Logon and Password <====
strSql = "SELECT Count (*) " & _
"FROM [Login] " & _
"WHERE WeighinUserID = " & "'" & strWeighinUserID & "'"
& _
"AND WeighinPassword = " & "'" & strWeighinPassword
& "'"
%>
<!--#include file="Includes/LoginOpenCursor.asp" -->
<%
If rsLogin.Fields(0) = 0 Then
rsLogin.Close
Response.Redirect "Default.htm"
else
rsLogin.Close
Response.Write "<FORM method='post'>"
Response.Write "<INPUT name='From' type='hidden'
value='Login'>"
Response.Write "<INPUT name='WeighinUserID' type='hidden'
value='" & strWeighinUserId & "'>"
Response.Write "<INPUT name='WeighinPassword' type='hidden'
value='" & strWeighinPassword & "'>"
Response.Write "</FORM>"
Response.Redirect "Display.asp"
End If
********************************************************************
The part that isn't working is the Response.write's in the else
condition. Can any one help me??? It's probably something very
simple.....
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [email protected]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/