How to define a variable on one mage, and make it available
Posted: Mon May 19, 2003 10:42 pm
Could someone tell me how to make a variable I define on one page, available to any other page I want to call it from ?
Example:
Login.php has 2 text boxes. One is named user, the other is named pwd.
Then, on my authentication script, I give each post value a variable name:
$username = $_POST['user'];
$password = $_POST['pwd'];
It then forwards me to a "User Main Menu" page, of which I want to say "Welcome $username", where $username = post value.
I know this has to be very easy... I've looked in my book, but I must be over looking how to do this... Any help is appreciated.
Example:
Login.php has 2 text boxes. One is named user, the other is named pwd.
Then, on my authentication script, I give each post value a variable name:
$username = $_POST['user'];
$password = $_POST['pwd'];
It then forwards me to a "User Main Menu" page, of which I want to say "Welcome $username", where $username = post value.
I know this has to be very easy... I've looked in my book, but I must be over looking how to do this... Any help is appreciated.