what I would do is when they login, give them a session with their id and their email and logged in as 1(true) then when they have that change part, instead of sending the id, just get it from the session if they have one and also check the email address(if you have that field) againest the database opne and if all matches, then let them change the stuff, another way would be to have a session for the password in md5() or password() form straight from the db instead of the email addy session, and check that againest the db, I would say that is the best, most secure way.