I have this code in login_seccess.php
<?php session_start(); if(!session_is_registered(myusername)){ header("location:main_login.php"); } ?> <html> <body> Login Successful </body> </html>
I also have this code in checklogin.php
<?php $host="host"; // Host name $username="user"; // Mysql username $password="pass"; // Mysql password $db_name="main13"; // Database name $tbl_name="Login"; // Table name ?>
Can I do like include("checklogin.php") and use the $host variables and such to connect to the database in login_success.php?
I also need on login_seccess.php to display more information like their first, last, and e-mail
I need help really fast! thank you