I have an index.php page. The user just connects to the page has a form to login. Once logged in, always display on the same page "Welcome User234, you are logged in. Logout?"
<?php if(isset($_SESSION['user_info']) && is_array($_SESSION['user_info'])) { ?>
<form id="login-form" class="login-form" name="form1">
<div id="form-content">
<div class="welcome">
<?php echo $_SESSION['user_info']['name'] ?>, you are logged in.
<br /><br />
<?php echo $_SESSION['user_info']['content'] ?>
<br /><br />
<a href="index.php?ac=logout" style="color:#3ec038">Logout</a>
</div>
</div>
</form>
You can see here: http://demo.phpjabbers.com/freescripts/php-user-login/index.php (email: demo1@demo.com, password: pass)
Okay, now I want add my table (http://vulpinelab.online/TabellaExcel/) after the login of the User (each user will see a different table, for example user1 can view only /TabellaExcel, user2 can view only /TabellaExcel2..)
Is there a method to insert the table file in the index.php?
Or there is a method to make the page /TabellaExcel protected by the previous login for each user?
What is the best method and how canI do it?