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
3 odpowiedzi
+ 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.
0
I have tried that it works fine thanks alot