Posted by Robizzle on 10/12/05 17:03
I'm having problems with an html textarea and how the input is
interpreted in php. For instance, new lines aren't being carried over
in my news posts.
Currently this is what i'm doing:
makenews.php takes form data from makenews.php and spits it out to the
first file that doesn't already exist of the name template
news.file.I.txt where I starts at 0 and works its way up. However, if
I enter something like the following:
"this is a test. There is a new
line between the words 'new' and 'line'"
I end up with a news post that looks like "this is a test. There is a
newline between the words 'new' and 'line'".
What is going on? You can play with the script yourself if that helps
any, i've created a copy for use by you guys at
http://www.cse.msu.edu/~meyerro3/google.php . Will post the source
codes on that page in a minute.
[Back to original message]
|