Hi Guys,
I have 2 applications
One called frmLogin and one called frmMenu
The login is the first login form with 2 fields for username and password, i have an onvalidate event as follows.
sc_lookup(dataset, "SELECT count(*)
FROM TblUsers
WHERE
Username = '{Username}' and
Password = '{Password}'");
$vuser = {Username};
if({dataset[0][0]}<=0)
{
sc_error_message("Invalid Username or Password.");
}
I would like to pass the username as a variable so i can use it in the menu header (You are logged in as: [username]
How is this done please?
Is it also possible to set access rights on certain fields, blocks, tabs, buttons etc so I can allow access from my tblusers so that each user has access to different levels??
Thanks
Craig