I know this is a dumb question, but I didn't find any suggestion about how to do this.
I have an ultra-simple self-submitting php page, which obviously contains a form.
When the user fills the form and submits the data (using method POST), the page is redisplayed with the form, followed by the results of data submission.
The problem is: when the page is redisplayed after the submission the form fields are blank, and instead I want them to contain the data the user typed in the previous submission. Is this expected behavior? Is there a way to do what I want?
The page source is composed of the form (pure html), followed by php code that check whether there is POST data and, if so, does some processing and shows the results.
Thanks