i have this page, called file_pool.php, which is where logged users can access uploaded files by other members.
However, the user should only be able to view the files ONCE he/she has been found to be in the DB.
SO it goes like this
*if the user isnt logged in yet*
Code: Select all
if (!isset($_SESSION["user"])) { #show html forms and etc so the user can log in}Code: Select all
else{ #show the files the user can download}I would like php to, once the user has been authenticated, make some sort of refresh on the page, so it now shows the members-only area, namely the files. But without me having to hit refresh on my browser.
I looked into some answers for this and came up with the header() function, but im not sure how i should use it, or maybe is there some other way?
thanks in advance hope you understood