Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Illana May
March 12, 2005, 8:04 pm
rate this thread
Hi Folks, my webmaster is away for two weeks, and I need a small php snippet
to write form fields to a text file.
The text file looks like the bit below. (It's a calendar file). The form
fields are marked //field x, the rest being the same in each entry. A file
normally has more than one such entry, so append writing is needed. The file
name to write to/creat if not exisitng is in field 1 of the form. Also need
to set the permissions if the file is created for the firs time to allow me
to write via the form.
Please can someone tell me how to open/creat a file with a name specified
from a form field, and then how to write say from line 1 to 11, I'll figure
out the rest.
:-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN
:cba449d0-8187-11d9-aaff-fd51ca433248 //Field 2
:James Wright Street\, Norkem Plaza\,Kempton Park\, Johannesburg //field 4
:20050408T200000 //field 5
:20050408T235900 //field 6
:20050218T083037Z //field 7
- » Web Forms/Preserving state with $_GET - should I be doing this?
- — Previous thread in » PHP Scripting Forum