Say you have the table USER like this:
ID - UNIQUE_ID
LOGIN - VARCHAR
PASSWD - VARCHAR
So, you make a form, and ask the user to fill it in with the new data. Create two text fields (we'll call them $log and $pwd), and a HIDDEN field stating the unique ID for that user. You have to use the following SQL for updating:
UPDATE USER SET LOGIN = '".$log."',PASSWD = '".$pwd."' WHERE ID = ".$UNIQUE_ID_INTO_HIDDEN_FIELD.";
and that's it
Hope it helps
fLIPIS