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.
How to define a variable on one mage, and make it available
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK