From login.php to index.php passing vars
Hi,
I've developed a small database app. I have a login screen where a user types in his username and password. If validated I would like to pass the userid field to index.php and use that for my SQL queries. ie. User enters John as username
and Doe as his password therefore his userid = 2; when I get to index.php I would like to do something like $SQL = 'select * from basket where id = ' .$userid. Do I use the $Params variable? If so, how? or can I use some sort of global variable? Please help.
Thanks
|