what to do in order to make the form remember the previous input or the current input of the user even after he/she refreshed the page ?
should I do ,
There are some main issues to check in order to get the data appear after refresh or any event handler:
1) Be aware of the signature. it must contain the method="post" attribute as follows:
else the using of the $_POST['messenger'] will not work.
The default value of the method attribute in the form is get.
2) Many programmers mix between the attributes id vs name. Be aware of using the correct attribute. The $_POST associative array is using the name to get data from it. That is why the next example will not work correctly:
"
To get it work right you must add the attribute name="data" as follows:
"
Good luck