Global variable

I want to pass a variable from one php page to another. I know you can do this through ?id= but I know there is a different way. I have forgotten the code word for it.

You could store it in the user’s session, but I’d advise against it.

Well is there any other method. Otherwise I would have to pass the users name in a ?id= which I don’t want to do

You can safely store user information in the session, I thought you were talking about data between pages (ie multi-form etc).

wait, could you store it in a txt file and then retrieve from the text file

Can you give some more details about what you’re passing around, and what it does?

Then we can give you an optimal way of doing so.