...

View Full Version : addint items to a basket



12345678
01-12-2005, 06:29 PM
please i need help. I am doing a wed site online shopping system for my
school project, which requires some asp coding using vb script. I am new to
asp and have no knowledge whatsoever on how to code what i need.
Please please please could someone please provide me with help, or
coding on how to add item details into a basket record, once the user clicks
the add to basket link.

12345678
01-12-2005, 06:30 PM
help, please

ghell
01-13-2005, 09:42 AM
shhhh dont tell ne1 its for a school project, u get lectured that you shouldnt be asking people to do your homework for you:rolleyes:

go to www.w3schools.com and go through the learn asp section, taking note of sessions and databases, really you want to get the link to add a unique id (autonumber) of an item to a session, separated by a comma or whatever, like if they add item 4 and 8 then the session could store
"4,8"

this could then be split() at "," s to get all the items at the checkout

checkboxes could also be used as the values selected are sent to the form as a comma separated string anyway :thumbsup:

Bullschmidt
01-17-2005, 02:21 PM
I generally think of a shopping cart as a fancy name for a session array. And here is a good resource that includes how to use session arrays:

Session Object
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/ref_vbom_seso.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum