Page 1 of 1
Passing variables between php files
Posted: Wed May 22, 2002 1:14 pm
by Pintonite
I need to pass information between php files. would the best way be through cookies?
Mark
Posted: Wed May 22, 2002 1:25 pm
by enygma
really it depends on what the script is for on which method to use...
Posted: Wed May 22, 2002 1:45 pm
by Pintonite
OK, At the moment I have it so a user must login to see their "personal page." Passing the variable with a form is simple in this case, but I would rather not use forms for everything. From this personal page I want to be able to send along the users name and ID # which will be used for accessing files in other PHP files.
you can check what I am talking about here. Notice that once you are registered and logged in it says welcome $yourname in the title. That name plus a special hidden ID tag will need to get passed onto other pages
http://eisbock.dcc.uaf.edu/~fxmri/project/
Posted: Wed May 22, 2002 2:16 pm
by volka
sounds like sessions
Posted: Wed May 22, 2002 4:59 pm
by Pintonite
Thanks for the help but I was able to figure it out. It was incredibly simple.
Posted: Wed May 22, 2002 5:04 pm
by volka
jepp, it's PHP
