ok, i have a php and mysql script that allows you to log in if you have a username / password
once entered correctly it forwards you to the members page. here i would like it to load the persons full name of who as loged in, like it does on this site top right.
here is the code to the members area
<?php
$host="localhost"; // Host name
$username="stephen2_phptest"; // Mysql username
$password="********"; // Mysql password
$db_name="stephen2_phptest"; // Database name
$tbl_name="registers"; // Table name
// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
session_start();
if(!session_is_registered(myusername)){
header("location:index.php");
$myusername=$_POST['myusername'];
}
?>
<html>
<link rel="stylesheet" type="text/css" href="../php/css/styles.css">
<body>
<div class="members-screen">
Login Successful</br>
Welcome [persons name to load here]<?php echo $_POST['myusername'] ?> <a href="../php/logout.php"> | Logout</a>
<div class="menu">
<div class="menu-btn">
<a href="">Home</a>
</div>
<div class="menu-btn">
<a href="">Search</a>
</div>
<div class="menu-btn">
<a href="">Messages</a>
</div>
<div class="menu-btn">
<a href="">Matches</a>
</div>
<div class="menu-btn">
<a href="">My Account</a>
</div>
</div>
</div>
</body>
</html>`
any ideas?