I have this working form which interacts with a MySQL database.
I also have a login form to project the application. I’m using PHP session and session_register
What I want to do is to get the username from the session_register and put it in an input field called “admin”. The input field is readonly so the user cannot change it but the data should be saved to the database when the user hits the “save changes” button.
Would that be possible with a json form?
Please help me out.