Simple PHP Question

Out of context: Reply #14

  • Started
  • Last post
  • 31 Responses
  • epikore0

    This the entire code, I don't think I have anything before it:

    <html>
    <head>
    <title></title>

    </head>

    <body>

    <?php
    //password
    $pw = 'yahoo';

    if ($_POST['submit'] == 'Login')
    {
    //Check Password
    if ($_POST['password'] == $pw)
    //Send to Sekritz
    header('Location: http://www.yahoo.com');
    else
    //load error note and proceed with the rest of the shit.
    $error = 'Password Incorrect<p>';
    }
    ?>

    <form method="post" action="<?=$PHP_SELF;?>" name="sekrit">
    <?=$error;?>
    Please enter the password.
    <p><input type="text" name="password">
    <input type="submit" name="submit" value="Login">
    </form>

    </body>

    </html>

    • Everything else works except for the redirectepikore

View thread