New Session login details
<p>This script works brilliantly, so thanks for that! I am very new to PHP and I would like to carry the login username into the next and subsequent pages. I have tried the code below which works with simple login scripts, but not with this one I must be missing something. If anyone could point me in the right direction would be very grateful. Thanks:</p>

<pre><code>&lt;?php 
session_start(); // start up your PHP session! 


if (isset($_SESSION['username'])
{

    echo "You are logged in as ".$_SESSION['username'];
    echo "&lt;p&gt;";

    echo "&lt;a href='logout.php'&gt; Click here to logout&lt;a/&gt;";
    }

else

header ("Location: form.php");

?&gt;
</code></pre>
