I want to get user input in one page, store that in a php variable and use it in another php page. I have tried using ‘sessions’ but it doesn’t seem to be working. Is there another safe alternative? This information is likely to be usernames and passwords.
Share
Try changing your session code as this is the best way to do this.
For example:
index.php
nextpage.php
However I’d probably store something safer like a userid in a session rather than the user’s login credentials.