The data of a form is sent to the next page, where it is temporarily available in the $POST[] array. Or, if you use method="get", the $_GET[] array.
Upon loading the page, there is no post data, so nothing would be displayed, just as there is nothing when you load a page after your friend submits something.
If you do want this data to not disappear, you will need to store it. There are several ways to do this, but the two options you should consider are:
1. Store it in a database. More info here:
http://php-mysql-tutorial.com
2. Store it in text files on your server. This code will work--
PHP Code:
$file = 'my.txt';
//store the name of the file
$f = fopen($file,'w+'); //open file and if it doesn't exist, create it
fwrite($f,$stuff); //write $stuff into the file. This can be POST vars, or whatever you want.
fclose($f); //close the file, to free up memory.
$file_contents = file_get_contents($file); //get what is in the file
//now you can echo $file_contents; to display it
//or you could use this to add to the content, using:
//$file_contents.$_POST['agenda'];, etc.
Bookmarks