Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

PHP Login help

$
0
0

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 :)


Viewing all articles
Browse latest Browse all 13200

Trending Articles