Jump to content

Recommended Posts

I have a index.php page which displays a different output depending on whether information is uploaded (from a file php-mysql table) or whether is it entered through a form.  Right now I am using sessions to pass these variables. E.g. when a file is  uploaded i am using a hidden field to change the variable to "upload" then when the upload.php redirects back to the index it shows the output of this (instead of the output if would have if it was entered by the form) and the same for the form.  This all works fine right now, however, because I am also using the session for a login, the variables are unset after the browser is closed, so that my index displays a blank page. Any suggestions?

Link to comment
https://forums.phpfreaks.com/topic/196387-variables/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.