Well, you can do this using HTML and PHP, but it would be necessary to handle server-side files, note that: It’s possible, but it’s not very safe since anyone with access to the server could access the entries (unless they’re encrypted).
Come on
First you would need to assemble a common form in HTML, I believe you already know how to do this, in case you don’t know, you can take a look at this link.
The form action should be pointing to your PHP page, in it you should receive all the necessary data via POST or GET.
The structure of the PHP page should look something like:
if(isset($_POST) && !empty($_POST))
{
<Criação dos campos>;
}
Within this IF structure you will have to carry out the whole process for creating a file in an XML format for reading, this file can be in any formatting you want, that is, you can create tags within it so that it is simpler for you to read the same.
Ex:
Pedro Henrique Correia
Lorem Ipsum
Then you can record using this tutorial or one of these below:
You can give a name and a write path as you prefer and, to read and fetch the data you want, you can read this here.
Note that if you want to read an encrypted file, first you have to read it as String, and then use simpleXml to turn it into XML
If the system is going to use a large amount of data, I advise you to go adding nodes instead of creating a file for each user or for each record, so when the system is started it can read all documents in an object or an array at a single time, making processing infinitely faster.
Possible. http://www.html5rocks.com/pt/features/storage
– Tony
Have an example at http://www.html5rocks.com/en/tutorials/webdatabase/todo/? redirect_from_locale=pt
– Tony
Yes, Localstorage (http://www.w3schools.com/html/html5_webstorage.asp), Websql (http://www.tutorialspoint.com/html5/html5_web_sql.htm) and particularly use Html5sql.js (http://html5sql.com/) which is easy to implement.
– Diego Vieira