kwertyuk
10-11-2008, 01:52 PM
Hi,
I am a complete novice when it comes to PHP. I have a text field on my webpage and when the user clicks submit I want the contents to be written into a .txt file.
I googled a few ways of doing it but they all replace the contents of the .txt file whereas I want the form input to be added onto the end of the contents of the .txt file.
And I would want each entry to be ended with a ";" to seperate them.
The contents of the .txt file would appear something like this:
"input1 from form; input2 from form; input3 from form; ... etc"
Any ideas on how i could do this?
Cheers, Dave
I am a complete novice when it comes to PHP. I have a text field on my webpage and when the user clicks submit I want the contents to be written into a .txt file.
I googled a few ways of doing it but they all replace the contents of the .txt file whereas I want the form input to be added onto the end of the contents of the .txt file.
And I would want each entry to be ended with a ";" to seperate them.
The contents of the .txt file would appear something like this:
"input1 from form; input2 from form; input3 from form; ... etc"
Any ideas on how i could do this?
Cheers, Dave