Im sure this is a pretty basic question....but I need help with either cookies or using a session variable.
I need to have a variable that stores the user's Customer Id throughout my website. I've looked at examples of cookies and Session stuff, but I just don't get it. It seems easy enough, so I think Im missing something extremely basic. I am trying to set up a shopping cart, and right now because my variables are limited to the page and not the site, almost every other page the user would have to type in at least their email address so that I can do a query that would retreive their CustId from the database.
Between cookies and session, i don't have a clue as to which I should use or which is more appropriate. I just want to store a value once and retrieve that value from time to time while that user is on my site.
Ive tried to use cookies a little, and mostly, I get an error about "Header..blah.blah.."
I would love any help that I can, just assume that I have no clue what Im doing with php. =)
THank You
I need to have a variable that stores the user's Customer Id throughout my website. I've looked at examples of cookies and Session stuff, but I just don't get it. It seems easy enough, so I think Im missing something extremely basic. I am trying to set up a shopping cart, and right now because my variables are limited to the page and not the site, almost every other page the user would have to type in at least their email address so that I can do a query that would retreive their CustId from the database.
Between cookies and session, i don't have a clue as to which I should use or which is more appropriate. I just want to store a value once and retrieve that value from time to time while that user is on my site.
Ive tried to use cookies a little, and mostly, I get an error about "Header..blah.blah.."
I would love any help that I can, just assume that I have no clue what Im doing with php. =)
THank You