Login page shows blank
<p>The login page on a project i'm currently fixing up shows blank.  i tried echoing some words to find out where the fault lied.  I found out that commenting out the below piece of code made it to display.</p>

<pre><code>elseif( isset($_POST['do_login'] ) ){ //Login user

    $email = (isset($_POST['login']) &amp;&amp; is_string($_POST['login'])
                &amp;&amp; strlen($_POST['login'])&lt;100)?$_POST['login'] : null;
    $password  = (isset($_POST['password']) &amp;&amp; is_string($_POST['password'])
                &amp;&amp; strlen($_POST['password'])&lt;100)?$_POST['password'] : null;
    $remember  = isset($_POST['chkremember']) ? true : false;

    $result = $auth-&gt;login($email, $password, $remember);

    switch($result){
        case 1:
            $msg = 'You have successfully logged in.'
            break;    
        case 2:
            $msg = 'Your account has not yet been confirmed. &lt;br/&gt; Please check the e-mail message sent by us and click the confirmation code to validate this account. &lt;a href="user_login.php?view=resend&amp;resend_email='.$email.'"&gt;resend activation e-mail&lt;/a&gt;';
            break;
        case 3:
            $msg = 'Your account is not enabled!';
            break;
        case 4:
            $msg = 'Account with given login credentials does not exist!';
            break;
    }
}
</code></pre>

<p>Can anyone help me figiure out what's wrong with this piece of code?</p>
