www.webdeveloper.com
Results 1 to 4 of 4

Thread: [RESOLVED] PHP MySQL User Admin.

  1. #1
    Join Date
    Jul 2009
    Posts
    184

    resolved [RESOLVED] PHP MySQL User Admin.

    Hey all,

    I am new to PHP and have been working on a basic login system with user admin "features" to keep in practice with PHP, and maybe even use someday. One of these features is the ability for users to change their password that is stored in a MySQL table.

    I have the script working well enough to change the users password, but this odd popup shows every time the form is submitted, asking to confirm which user(It somehow shows a list of username's from my MySQL table) to change the password for. I have attached an image of the popup to the bottom of this post.

    I have never seen this before, can't find anything like it searching the web, and I really don't want this popup as it is providing a list of all username's to anyone that is logged in.

    Here is the simple query I am making to the database to update the user password in the table "user_system":
    Code:
    $query = "update user_system set password='$new_pw' where username='$username'";
    mysqli_query($DB_connect, $query);
    Where $DB_connect is the mysql_connect() info, $new_pw is the new password entered in the form, and $username value is retrieved from the $_SESSION array.

    Other notes: Developed locally on MAMP, Session IS started, User is logged in here(confirmed by checking the value of a variable that is set and stored in $_SESSION when logging in).
    ***scratched out questions***

    Please Help me
    Attached Images Attached Images
    Last edited by WestWeb; 06-08-2010 at 06:17 PM.

  2. #2
    Join Date
    Jul 2009
    Posts
    184
    Hmmm Just noticed it was a Firefox only issue. I suppose this means Firefox is the culprit here.

    I think it is because I have been testing the form with multiple "User Accounts" and Firefox is showing all of the users related to me, the visitor. Can anyone confirm this?

    I'll probably leave the script as is, if this is just a browser feature.

  3. #3
    Join Date
    Mar 2010
    Posts
    672
    Quote Originally Posted by WestWeb View Post
    Hmmm Just noticed it was a Firefox only issue. I suppose this means Firefox is the culprit here.

    I think it is because I have been testing the form with multiple "User Accounts" and Firefox is showing all of the users related to me, the visitor. Can anyone confirm this?

    I'll probably leave the script as is, if this is just a browser feature.
    The popup is the firefox password manager. It stores passwords for you for any site so that you don't have to type them in again.
    It is thus trying to update the passwords on file with the new password you just entered when testing your form. So it can be safely ignored.

  4. #4
    Join Date
    Jul 2009
    Posts
    184
    *Whew*

    Was hoping it was something simple like that. Thank you!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles