Jump to content

Saving $_POST -information


jpl225

Recommended Posts

Hi!

 

Is there any way to keep in memory $_POST-information? I mean, that when I use form to get the data and process it in another file everything is allright. But if I go to next file it do not have that information anymore?

 

The reason I need this is that I am building a shopping cart and first user select from item-group to see items (that is he sees only items from that group, not all items). After seeing items he can put one or more into basket and there I got this problem. $_POST-information is gone for good.

 

So is there a way to keep it in variable or file or ...?

 

Jyri

Link to comment
https://forums.phpfreaks.com/topic/173699-saving-_post-information/
Share on other sites

Hello,

 

I made a shopping cart for a couple of websites before.

 

I made the user register before being able to add products to their cart. When adding to cart I would have them sent to a mysql database.

 

Most people use cookies to store the users shopping list.

 

Hope this helps.

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.