View Single Post
  #1 (permalink)  
Old 10th November 2008, 15:05
cooljjj cooljjj is offline
just Joined!
 
Join Date: Nov 2008
Posts: 2
cooljjj is on a distinguished road
Default 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
Reply With Quote
Sponsored Links