The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Ok I have got a text area but when ever any body press enters in the text area and submits a post. Because I have got it set up to read each line and output it to the screen before going 2 the next line. But currently if the user hits enter I get a new line added to the file when I don't require it so when it output the information. Instead of having one post on one line I could have one post over multiple lines of which I don't want to happen.
and removes the \n coding so that all of the message gets puts in to one line. Because that way that I have got it set up is so that all information for one post/reply is stored on 1 line. then the next post on the next line and so on. But as I have got the \n problem it puts one post accross multiple lines in the file of which makes the computer think that it's different posts and not just 1 post. d:(
doc thanks, I will try that later on and see how it goes. d:)
But I am going 2 b giving the users the option of using HTML
. Then the message is useable directly (unless you also want to use striptags to get rid of HTML and PHP tags).
$message = stripslashes(nl2br($message));
But then on my message board, I get to review/edit the unwashed input before it appears on the site ... and I've seen what can happen if you don't.
I suggest fiddling about with the nl2br() function.
I love algorithms.
Ok I have got a text area but when ever any body press enters in the text area and submits a post. Because I have got it set up to read each line and output it to the screen before going 2 the next line. But currently if the user hits enter I get a new line added to the file when I don't require it so when it output the information. Instead of having one post on one line I could have one post over multiple lines of which I don't want to happen.