Ok here it goes I am going to show you what I have on each page and tell you what it is doing.
form.php
agenda.php (which is the page that the info from the form should appear)Quote:
<form action="agenda.php" method="post">
<?php $file = 'my.txt';
$f = fopen($file,'w+'); //open file and if it doesn't exist, create it
fwrite($f,$_GET); //write $stuff into the file. This can be POST vars, or whatever you want.
fclose($f); //close the file, to free up memory.
?>
Type Agenda Information Here:<br>
<p> <input type="text" name="agenda" <br size="46"></p>
<p><br>
<input type="submit" value="Submit"</p></form>
Granted the above codes are not all that is on the page but the rest has nothing to do with this subject.Quote:
<?php echo file_get_contents('my.txt'); ?>
Ok when I typed City Wide Cleanup in the form it went to the agenda page and all that was added was the word "Array"
So I went back to the form page and did another submission and it went to the agenda page and the word "Array" was still there and nothing else was added. I opened the txt file it is saving in and there is the word "Array" and nothing else.
So there is a submission and it is staying there but the words i am submitting is not showing up and it is not adding anything to the txt file it seems to be overwriting it???
Any Suggestions
THanks
DM
