password changing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sree266
    New Member
    • Jul 2007
    • 12

    password changing

    hi,
    i need code to change password in php..
    could you plz help me its urgent
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, sree. Welcome to TSDN!

    What application do you need to change your password for?

    Comment

    • epots9
      Recognized Expert Top Contributor
      • May 2007
      • 1352

      #3
      make sure that the user is logged in/valid have him/her enter the new password (2 textboxes to make sure its right), test the values of the textboxes to make sure they match, then do an update statement (only updating the password field) and send it off to your database.

      good luck

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        Originally posted by epots9
        .. then do an update statement (only updating the password field) and send it off to your database...
        And make sure you only allow your query to update 1 row, so you don't accidentally change all passwords. (Errors like that have actually killed people!)

        Comment

        • epots9
          Recognized Expert Top Contributor
          • May 2007
          • 1352

          #5
          i hinted at that in my first line but ur right Atli, should have been alittle more clear.

          Comment

          • dafodil
            Contributor
            • Jul 2007
            • 389

            #6
            Originally posted by sree266
            hi,
            i need code to change password in php..
            could you plz help me its urgent
            If you want to change your password you should have an existing database and a table for a user....

            Then use the Update statement.....

            You can read additional info on : w3schools.com

            Comment

            • ak1dnar
              Recognized Expert Top Contributor
              • Jan 2007
              • 1584

              #7
              Originally posted by sree266
              hi,
              i need code to change password in php..
              could you plz help me its urgent
              Hi sree266,

              If you'd like to get the work to be done, you have to get thruogh the forum rules.
              Please be my guest to read this
              Thanks!

              -Ajaxrand

              How to ask a question

              Give as much detail as possible When you post a question or problem, express the situation clearly and concisely and include all relevant information, code used, data used, result expected, result achieved and any error codes or messages that you get as a result.

              Comment

              • pbmods
                Recognized Expert Expert
                • Apr 2007
                • 5821

                #8
                Originally posted by pbmods
                What application do you need to change your password for?
                Hah. Everyone have a good laugh at pbmod's silliness :P

                Comment

                • dafodil
                  Contributor
                  • Jul 2007
                  • 389

                  #9
                  Originally posted by pbmods
                  Hah. Everyone have a good laugh at pbmod's silliness :P
                  I didn't notice that.... lol

                  Comment

                  Working...