Hello, Nart,
First, you did not show us any code, so it is hard to help fix it for you.
Also, I could not get the village1 part to come up. After logging in, it just stops at the index.
Normally, you have a login page as you already do. Next, you have the user enter the username and
their password. You already have that. When the user presses the SUBMIT button which is the LOGIN
button, their is code in that section of the PHP file that verifies that it is a valid user and that their password
is correct. After that, you normally switch them to the correct page such as your village1 page. To do that,
you would normally use the “header” function of PHP. I is used like this:
header (“Location: some-page-on-your-site.php”);
In your case, you would want it to be something like:
header(“Location: village1.php”);
Or, if you have different pages for different groups, you would insert the correct page from the user’s profile
database table and send them to where they should be. I would guess that in your login code are of the
script you downloaded, you should be able to find where the inputs for the username and password are
and add after those are checked out, if they are valid, then use a header function to switch pages.
Hope that helps! Good luck!