Results 1 to 3 of 3

Thread: password

  1. #1
    Join Date
    Jan 2004
    Posts
    2

    Unanswered: password

    hi just learn php,can anyone enlighten me. because when enter correct password still showing wrong password message.
    using RH9 ,localhost,store file at /var/www/html

    many thkx

    <html>
    <head>
    <title>PHP testing</title>
    </head>
    <body>
    <?php
    $loginpass = 'test';
    if ($pw == $loginpass)
    {
    .........do something
    }
    else
    {
    print("Error. That is not the correct password.\n");
    }
    ?>
    </body>
    </html>

  2. #2
    Join Date
    Oct 2003
    Location
    Slovakia
    Posts
    482

    Re: password

    Originally posted by crayon
    hi just learn php,can anyone enlighten me. because when enter correct password still showing wrong password message.
    using RH9 ,localhost,store file at /var/www/html

    many thkx

    <html>
    <head>
    <title>PHP testing</title>
    </head>
    <body>
    <?php
    $loginpass = 'test';
    if ($pw == $loginpass)
    {
    .........do something
    }
    else
    {
    print("Error. That is not the correct password.\n");
    }
    ?>
    </body>
    </html>
    If you have version of PHP bigger than 4.2.0 Look to your php.ini and find directive register_globals and set to "On". And possibly that is your problem.
    More at: http://www.php.net/manual/en/configu...iguration.file

  3. #3
    Join Date
    Jan 2004
    Posts
    2
    Mr ika,thkx alot for helping me ,the problem is solve.
    thkx!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •