Greetings,
A relative newbie so any suggestions welcome.
Information sent to flatfile database - one field via a textarea.
A later option is to change the data in that (textarea) field. I have a login routine which loads the relevant data - BUT - the textarea only writes the first line (of multiline entry).
I have tried fiddling the line endings
str_replace
preg_
nl2br - and a few other variations.
The problem seems that the line ending (or breaks, or carriage returns?) are just not being written to the database in the first place.
I have set up a simple file set at:
http://www.buddhamind.info/temp/log/page.php
There are no index files in the folder so scripts are viewable.
I am not sure where the error might lay so hesitate to post too much script in the forum. Here at least is the write file:
@extract($_POST);
$fp = fopen("db/do_data.txt","a");
$content = "$fname\t$lname\t$your_x\t$seek_x\t$ages\t$country \t$Email\t$user\t$pass\t$code\t$bD\t$bM\t$bY\t$sta r\t$file\t$hobbies\n";
fwrite($fp,"$content");
fclose($fp);
echo "<HTML><META HTTP-EQUIV='REFRESH' CONTENT='0; URL=page.php'>";
Hours of my life have been (mostly happily) hacking this dilemna. Enough!
Help is my only salvation (that's you?)
thanks - arfa
|