Well there is always the concept of passing a variable to the $_SESSION array, but it really depends on the case you need. For example if you need to keep information about the currently logged in user, you could save it as an object and assign it `$_SESSION[‘user’] = $user’. Otherwise, if you want to just pass the variables to the other script and be done with them you could try a form and send them via the $_POST, $_GET or $_REQUEST arrays. Note that if sent by form the values are only sent once and not remembered.
I hope I was of some help 🙂
3
solved How to pass variable values between php files [closed]