Log in

View Full Version : text file display problem...



cstan
09-29-2006, 11:37 AM
firstly, i got i form that allow user to enter their description for some title. In the form i had an textarea that let user enter any string.

then i will display based on the user adjustment in the textarea.
for exmaple:
user key in string 'abcd' then press 'enter' and continue key in 'edfg'....
when the user submit, the pages should display
abcd
edfg
at same time, it aslo write to a txt file based the user adjustment but must be in same line.
continue upper example:
the file should show display in "abcd<br />edfg"

my problem is, i can do on html (display output) but i cant done what i want to do in text file.

what i done in text file was:
abcd
<br />edfg

i must done that, because this was an input to other program.

anyone can help?

thanks

djr33
09-29-2006, 09:55 PM
http://php.net/manual/en/ref.filesystem.php

Just look for commands like fopen, fwrite and fclose, depending on exactly what you need to do.