Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
That admin.php file, have you made that yourself? Because I don't think that it even should work. Sure, I haven't used PHP in a while, but when you log in, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578

    That admin.php file, have you made that yourself? Because I don't think that it even should work. Sure, I haven't used PHP in a while, but when you log in, the name and passwd variables won't be set, and therefore it will just continue to the displayForm() part.

  2. #12
    Just Joined!
    Join Date
    May 2003
    Posts
    10
    Hi,

    I didn't get your message. Why won't the username and password variables get set, the same code works perfect when I hosted it in a Windows machine using phymyadmin. Its just that it isnt working on a Linux box.

  3. #13
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    I don't know anything about using this stuff on Windows, but I'm pretty sure that POST data sets global variables like that. You have to retrieve them through the HTTP_POST_VARS array. Try adding this right after the session_start line:
    Code:
    if(isset($HTTP_POST_VARS["name"]))
        $name = $HTTP_POST_VARS["name"];
    if(isset($HTTP_POST_VARS["passwd"]))
        $name = $HTTP_POST_VARS["passwd"];

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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