[ create a new paste ] login | about

Link: http://codepad.org/hNfgD62y    [ raw code | fork ]

PHP, pasted on Dec 28:
<?php 

    function isIn () {
        if(isset($_SESSION) && $_SESSION['signed_in'] == TRUE) {
            return true;
        } else {
            return false;
        }
    }

    class User {
        public function post($db) {
        }

        public function LoginForm() { //says problem is on this line
            echo '<form  method="post">
                <div id="textbox">
                    <input type="text" id="username"     name="username" value="Username:" maxlength="100" size="16" onfocus="changeUsername();"/>
            </div>
            <div id="passbox">
                <input type="password" id="password" name="password" value="Password:" maxlength="20" size="16"/>
            </div>
            <input type="hidden" value="TRUE"name="login"/>
            <input type="submit" id="login" value="" />
        </form>
        <p id="loginlinks"><a href="forgotpass.php">Forgot Password</a> / <a href="register.php">Register</a></p>
        </div>';
    }

    public function Login(){}

}


Output:
No errors or program output.


Create a new paste based on this one


Comments: