This is just an example approach that may help you:
Write a php/html file which will print out a form for you:
<form method="post"> <input type="text" name="title" value=""/>
<input type="text" name="contenttitle" value=""/>
<textarea name="content">">
<input type="submit" value="save"/> </form>
Handle your form in the php file:
if (!empty($_POST)) {
$result = array( 'title' => htmlspecialchars($_POST['title']), 'contenttitle' => htmlspecialchars($_POST['contenttitle']), 'content' => htmlspecialchars($_POST['content']) );
// save it to a file by serialiing $filename = uniqid().'.text'; // you may play around with file names, rewrite this line so it will suit your convention - you may use counter of the files
file_put_content($filename, serialize($result));
}
To retrieve file and print it use something like this:
$file = $_GET['name']; $file = str_replace(array('/', '.', '\'), '', $file); // for security reasons
$content = file_get_contents($file.'.text'); // note this is an example extension
$data = unserialize($content);
echo '<h1>'.$data['title'].'</h1>';
echo '<h2>'.$data['contenttitle'].'</h2>';
echo '<p>'.$data['content'].'</p>';