hi,
anyone knows if it's possible to have a variable in which once it is assigned a value,
it would retain the value even if the webpage has refreshed or has moved into another webpage in php?
for example
in saveValues.php, i have a script there that would assign a value to $username to 'me'
$username = 'me';
then, redirect in another page
echo ("<meta http-equiv='Refresh' content='0;url=another.php'>");
Then, i want to use the $username variable in my user.php file, how would i do that or is itpossible???
a powerful variable
Moderator: General Moderators
Re: a powerful variable
You can use sessions. This "tutorial" looks good.