Hey All,
i'm having real trouble with this. ok, i have a login page where the user logs in. they put items in the cart and then go to addorder from to place order in database. only problem is i can't get it to work. i think the problem is that its not reading login and getting required userid from customers table, but i can't fix it. i don't know what to do with it. i'll paste in pages. any help would be greatly appreciated.
LOGIN.ASP
<%
'Green colorset
'BackgroundColor="#C9DDB3"
'BorderColor="#006600"
'Blue colorset
BackgroundColor="#AFD1F8"
BorderColor="#000080"
'Purple colorset
'BackgroundColor="#FDC8F2"
'BorderColor="#800080"
Content = "" 'Clear the Content string
QStr = Request.QueryString("login") 'Save the login querystring to QStr
if ucase(left(QStr,6))="CREATE" then
Title = "Register"
else
Title = "Login"
end if
'The code below saves the contents the table must have in the variable Content
'The content depends on what's in the QueryString
if QStr="passfailed" then
Content = Content & "Wrong password
Back"
elseif QStr="createpassfailed" then
Content = Content & "Wrong password
Back
Cancel registration"
elseif QStr="namefailed" then
Content = Content & "Invalid username
Click here to create an acount
Back"
elseif QStr="createnamefailed" then
Content = Content & "Invalid username
Back
Cancel registration"
elseif QStr="creatednew" then
Content = Content & "Your account has been created
Login"
elseif QStr="createnew" then
Content = Content & ""
Content = Content & "
Username: "
Content = Content & "
Name: "
Content = Content & "
Name: "
Content = Content & "
Address: "
Content = Content & "Phone: "
Content = Content & "Email: "
Content = Content & "Password: "
Content = Content & ""
Content = Content & ""
else
Content = Content & ""
Content = Content & "
Username: "
Content = Content & "Password: "
Content = Content & ""
Content = Content & ""
Content = Content & "Click here to create an acount"
end if
%>
<%
Response.Write("" & Title & "")
Response.Write(Content) ' Paste the contents in the table
%>