Solution uumer93 Posted June 19, 2022 Author Solution Share Posted June 19, 2022 23 hours ago, mac_gyver said: it's not. you don't have a clear definition of what the work-flow/steps are, so you haven't been successful at writing code that does what you want. the work-flow/steps are - a user sits down at a computer/device and logs in. this stores the logged in user id in a session variable. a logged in user can now see and do things that requires a logged in user. this tests/uses the user id in the session variable. one of the things they can see and do is see/navigate to the formulaire form, fill it in, and submit it. this also tests/uses the user id in the session variable. the form processing code for each form should be on the same page as the form. this results in the simplest code and the best user experience (you can repopulate the form field values upon an error so that the user doesn't need to keep reentering data over and over.) the way to get the form to submit to the same page it is on is to lever the entire action='...' attribute out of the form tag. Thank you for your help, I've tested so much tips and the solution was hidded inside the stored user id in SESSION so what I've did is to change this variable $_SESSION['username'] = $result->action_code; and show it inside my input's value. and it works perfectly I did a lot of tests and it is done. Thank you guys for all your help. its been a pleasure to learn from you devs. Have a good week ♥ Quote Link to comment https://forums.phpfreaks.com/topic/314930-ive-tried-to-insert-data-inside-an-inputs-value-but-the-input-goes-like-it-is-hidden/page/2/#findComment-1597452 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.