Answer the question
In order to leave comments, you need to log in
How to implement a redirect from the authorization page with the output of certain blocks (inputs, forms)?
The bottom line is, there is a page on which there are three buttons, before getting to it, the user passes authorization, during which, through a variable, I assign a group to him, like this (if you tell me how to make it easier, I will be grateful)
if($user_data['pass'] == $pass)
{
echo "OK";
if($user_data['login'] == 'test1')
{
$check = 1;
}
else
{
if($user_data['login'] == 'test2')
{
$check = 2;
}
else
{
if($user_data['login'] == 'test3' or 'test4' or 'test5' or 'test6' or 'test7')
{
$check = 3;
}
}
}
}
else
{
echo "Неверный пароль/логин";
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question