Well, you can do this using HTML and PHP, but you would need to handle server-side files, note that: It is possible, but it is not very secure since anyone with access to the server could access the files ( Unless they are encrypted).
Let's go
First you would need to put together a common HTML form, I think you already know how to do this, if you do not know, you can take a look this link .
The action of the form should be pointing to your PHP page, in which you should receive all the required data via POST or GET .
The PHP page structure should look something like:
if(isset($_POST) && !empty($_POST))
{
<Criação dos campos>;
}
Within this IF structure you will have to perform the whole process for creating a file in an XML format for reading, this file can be in any formatting you wish, ie you can create tags inside it so that is simpler for you to read the same.
Ex:
Pedro Henrique Correia
Lorem Ipsum
Then you can record using this tutorial or one of the following:
You can give a name and a recording path as you like, and to read and fetch the data you want, you can read this here .
Note that if you want to read an encrypted file, you first have to read it as String, and then use simpleXml to turn it into XML
If the system uses a lot of data, I advise you to add nodes, instead of creating a file for each user or for each record, so when the system starts it can read all the documents in an object or an array at a single time, making processing infinitely faster.