0

How to allow user to update their account name on php code

i want my users to be able to update their account name on database using a php code

29th Jun 2017, 9:25 PM
🔓GIRT🔒LOCK🔐
🔓GIRT🔒LOCK🔐 - avatar
3 Respostas
+ 2
I can't realy understand the question but i try to answer. i would create a html form with 1 input and 1 submit fields. The Inputfield for the name and the submit field for the code executen. the executed php form should validate the input, and session. After that you can start an database update on the row there the old username, who should stored in the session, is equal to the username in the database. Also you could fetch the data with the id. Then you should update the session with the new username and you are done.
5th Jul 2017, 6:34 AM
Bumpety
0
I have tried that it works fine thanks alot
14th Jul 2017, 9:39 AM
🔓GIRT🔒LOCK🔐
🔓GIRT🔒LOCK🔐 - avatar
14th Jul 2017, 10:34 AM
🔓GIRT🔒LOCK🔐
🔓GIRT🔒LOCK🔐 - avatar