OK, I worked this out by modifying a PHP counter file:this takes three files, one of which you should already have.the first, which you should have already, is the one that goes there. al you have to do is add this code for each link:
<form action="add_documents.php" method="post"><input type="hidden" name="file" value="content.txt"/><a href="javascript:submit()">the first file</a></form>
you can change the value of the hidden input to change the file.next, you have the file that recieves the data: (which you must name add_documents.php)
<?php// Open the file for reading$filename=$_POST["file"];$fp = fopen($filename, "r");// Get the contents$contents = fread($fp, 1024);// Close the filefclose($fp);// display contentsecho $contents;?>
this code does not need any editing, just put it inside your page where you want the content to show up.last of all, you must have the content file that corresponds with the filename in the first code snippet. if you want html tags inside the content, the file must have that.I'm sorry, I don't have a web host yet or I would post a link. let me know if it works. (it worked for me! )LGEdit: and if you want to name the file something else, change the form action.Edit2:forgot to say, you must have a PHP enabled server, and since PHP is a server-side scripting laguage, it will only work on a server, not just viewing on your computer.