return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
creating website with cookies
View this Thread in Original format
Michael19
Hello nerds.


I am making a website at the minute but having trouble with the cookies. It contains a shooping basket, but i am not sure how to work it. I have the quantity and price set up. and the add to basket icon. I need to be able to click on it to add the information to the a "basket" and display the information.

anyone have a link to a decent site for cookies that has good help, most the ones i have searched have been poor.
tribu
What are you programming in? Cookies are relatively easy. For example, in vb.net:

1. Declare the cookie
Dim myCookie as New HttpCookie("myCookieName")

2.Set the cookies value
myCookie.Value = "MyValue"

3.Add the cookie to the collectionof passed cookies
Response.Cookies.Add(MyCookie)


You can use several cookies or just one to pass the info. You should be able to easily Google the rest of the information you need or for other languages. Try http://www.w3schools.com/ for some decent free tutorials on scripting languages.
kadomony
no thanks, im full
eFeKz
quote:
Originally posted by kadomony
no thanks, im full
breath, blood, or urine!!!

Gordan Bombay!

LOL
medinaM5
chocolate chp plz kthx
Aureus
quote:
Originally posted by medinaM5
chocolate chp w/milk plz kthx


+1
superglo
double cream oreos FTW !
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement