Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Writing Cookies


BioSX

Recommended Posts

Hi

 

I have 5 groups of radio buttons (6 radio buttons each, 30 radio buttons total). I am sending the value of these elements back to the same page using method=POST. What I want to do is write a cookie for each option selected, when the page reloads. I am a cookie noobie.

 

while(list($key, $value) = each($HTTP_POST_VARS))

{

WRITE COOKIE HERE in session using $key and $value <<<<<<<<<<<<<<

}

 

Basically I just need to know how to set and read the cookies, I am capable of handling the forms and other scripts to check the appropriate radio buttons on page reload.

 

Any help appreciated.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...