authenticating user and display page
<p>I have created my page and am trying to authenticate the user before granting the user access to the page. My problem is that i am using the method like so:</p>

<pre><code>if($_SESSION['username']){
echo 'PAGE CONTENT HERE';

}else{
 SEND BACK TO LOGIN PAGE
}
</code></pre>

<p>Which works fine for some of my pages, but on my main page a populate select boxes with php from my db and when i use the metod above all of my options are displaying outside of the select (works fine if i dont echo the page out)</p>

<p>am i missing a trick here?</p>
