954,193 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Shopping Cart Not Working

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

%>

donnie_darko
Newbie Poster
1 post since Apr 2004
Reputation Points: 10
Solved Threads: 0
 

is this asp or asp.net?

serkan sendur
Postaholic
Banned
2,062 posts since Jan 2008
Reputation Points: 854
Solved Threads: 127
 

it is really hard to read all the matter u have posted.
specify your query clearly.

greeny_1984
Posting Whiz
372 posts since Apr 2007
Reputation Points: 25
Solved Threads: 29
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You