password manager in firefox

Discussion in 'PHP' started by omerta, Jan 12, 2008.

  1. #1
    Hi,

    I have just created an edit user form with standard password and confirm password fields using input_password_tag and a username field.

    When I write sth in the field paswword a username and nothing in the confirm field and press submit then apperas the message:

    "would you like to have password manager change the stored password for chris?"

    the strange thing is that chris is not the username i typed.

    Then i tried sth else.
    I deleted the xml file where the data were saved and i tried to to do the same thing. The result was the same.....

    How do I stop this?

    any idea pls?:confused::confused::confused:
     
    omerta, Jan 12, 2008 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    I think you need to disable the firefox password manager

    Just visit any other site with a form like this and try there

    Are you using ROBOFORM or any other form tool on your pc

    Its not a php problem

    Regards

    Alex
     
    kmap, Jan 12, 2008 IP
  3. omerta

    omerta Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No i don't use ROBOFORM or any other form tool.

    I will write my code if this helps...
    (the main problem is that appears an another username not the username you type at that moment... )

    the html file has the form code:

    <form id="form1" name="eggrafi" method="post" action="signup.php">
    <label><br />
    username:
    <input type="text" name="name" id="textfield" />
    </label>
    <p>
    <label>Password:
    <input name="password" type="password" id="textfield2" value="" />
    </label>
    </p>
    <p>
    <label>Retype:
    <input type="password" name="retype" id="textfield4" />
    </label>
    </p>
    <p>
    <label>
    <input type="submit" name="submit" id="button" value="Sign up" />
    </label>
    </p>
    </form>


    the signup.php is the following:

    ...

    if(($_POST["password"]==NULL) || ($_POST["retype"]==NULL))
    {
    include("eggrafi_error2.html");
    exit();
    }

    ...

    when you type nth in retype field go to eggrafi_error2.html which is the following:

    <form id="form1" name="eggrafi" method="post" action="signup.php">
    <label><br />
    username:
    <input type="text" name="name" id="textfield" value="<?php echo $_POST["name"]; ?>" />
    </label>
    <p><img src="jpgs/icon_error.gif" alt="error" width="14" height="16" /> <span class="style10">Re-type your password.</span></p>
    <p>
    <label>Password:
    <input name="password" type="password" id="textfield2" />
    </label>
    </p>
    <p>
    <label>Retype:
    <input type="password" name="retype" id="textfield4" />
    </label>
    </p>
    <p>
    <label>
    <input type="submit" name="submit" id="button" value="Submit" />
    </label>
    </p>
    </form>


    At last the login.xml file is this:

    <login>
    <users>
    <name>George</name>
    <password>pass</password>
    </users>
    </login>


    Sorry for too much data but it is very important to solve this problem....

    Thank you in advance
    Chris
     
    omerta, Jan 13, 2008 IP
  4. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Perhaps the password manager is relying on the id of the input fields to decide what's what. You may want to try giving the username and password fields ids which are more specific to their purpose and less likely to come up in other contexts.
     
    SmallPotatoes, Jan 13, 2008 IP
  5. omerta

    omerta Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank u my friend for the answer.
    I just tried that but did not work:(
    I tried giving both id and name field.
    Then i tried giving only the id field.

    But none of the above work....:(

    I can not imagine what is wrong.

    The strange thing is that in the message:
    "would you like to have password manager change the stored password for chris?"

    chris is not exist in login.xml....

    and whenever try to write sth in the field paswword, username and nothing in the confirm field and press submit then appears the message from above although the name i give in the username field is dor example "George".

    :confused::confused:

    any other proposal?

    Thank you in advance
    chris
     
    omerta, Jan 13, 2008 IP
  6. vezycash

    vezycash Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Sorry that's seems too technical.
     
    vezycash, Jul 18, 2009 IP