View Single Post
  #1 (permalink)  
Old May 23rd, 2005, 05:25 PM
jsbeg jsbeg is offline
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem editing cokie

Hello friends. I'm building a kind of shopping cart who tracks into a cookie the choices picked by the user along some pages. Anytime the user can go to a .php page where the choosen items are shown, prices, total, etc. I would like to add some feature to allow the user to drop some item of his list, I've been working in a form checkbox who calls onClick a function who is able to get the target value and erase it out of the cookie string. But I can't have this working because:
- I need to refresh the page automatically at the end of the function, so the changes can be shown in the browser.
- I'm not sure if I need to delete the cookie before write the new one, or if overwrite will be enough.
I forgot to say that I'm reading and writing the cookies through JavaScript, I'm using PHP only to get data from DB.
I will appreciate any help.
Reply With Quote