and what when I want to show this subject ?
That mean that there is no any way(code) to replace \r\n with <br> except \r\n that between [textarea] and [/text area] ?
Printable View
and what when I want to show this subject ?
That mean that there is no any way(code) to replace \r\n with <br> except \r\n that between [textarea] and [/text area] ?
no no no
listen carefully. Read carefully.....
the user enters text in the textarea. then submit it to the database. when you take them out of the DB DON'T use a str_replace on the contents of the textbox. so whatever the users enters in the textbox will get added to the DB without and replacing so when you echo them out of the DB it will look normal and be on 1 line.
I hope you don't have *everything* going into 1 DB column.
all text go to one cell (1 DB column)
so you have all the text the user puts in the form going to 1 column? how many others are going. show us the form please.
it's normal form contain :
1- NAME :
2 - PASSWORD
3- Subject
it's in my new forum (VBZooM Forum) .. Near I will make english copy of it until yo can download it and tell me your opinon ?
It's HERE:
http://vbzoom.com/forums
hmmm it is all backwards from this forum. so let me get this straight. you want to take the reply and insert it into the DB?
so you have ReplyText the only thing going beside the name and password?
if that is correct them how are you entering ReplyText into the DB. what is the code you have to enter things to DB.
I have reply text . I use this code to insert reply to DB
PHP Code:
$Sql = "INSERT INTO Reply (MainID,SubjectID,ReplyTitle,ReplyText,Replier,Icon,ReplyDate,ReplyTime,Attach,DownloadNo,ActiveUrl,ShowSignature) VALUES ('$MainID','$SubjectID','$ReplyTitle','$ReplyText','$Replier','$Icon','$ReplyDate','$ReplyTime','$Attach','0','$ActiveUrl','$ShowSignature')";
$Result = mysql_query($Sql);
and that is it? you don't replace <textarea> with [textarea] or anything? then what are you worried about? if you put anything in the textarea in the DB and don't replace anything it will not add any <br>'s inplace of the \r\n
user can Insert ReplyText like that
I want when I show this reply disply:PHP Code:Good Code
Write It now
[CODES]
Any
Code
Here
[/CODES]
_________
Any
Code
Here
__________
inside textarea not between table and not between two lines <HR> like this forum .. I want to disply code inside textarea after that.. I hope you can unserstand me.
I am so lost. you say they enter text in a text box. it then goes to the DB and when you take it out of the DB you want to show the text on different lines like so
Any
Code
Here
in a <textarea> or on the page like you are reading this now?
GOOD.
Yes that is what I mean. you are right.
ok so if they add tags like [code] then you want to make the other text (outside the [code] tags) to be one line? and everything inside the [code] tags to have a line break, right?
I want to make Every lines outside [code] such as I write it , I mean replace new line with <BR>.
and every lines inside [code] make it inside textarea.
so you want whatever is typed in between the [code] tags to b eplaced into a text box? so the code between those tags is inside this textbox that I am using to type this message?
Say a user types in this:
He wants to convert it to this:Quote:
blah blah lines blah blah
blah blah blah lines
blah blah fublah
[quode]
my wonderful code
goes here
[/quode]
Am I correct prokhaled?Quote:
blah blah lines blah blah<br>
blah blah blah lines<br>
blah blah fublah<br>
<textarea>
my wonderful code
goes here
</textarea>
Yes M.R Hobo you are correct.
how do i delete stuff like :
[ b ]
[ b:7777790783903094878314 ]
(note the numbers can be anything)
I wanna strip BB Code from a module to show the recent posts on my homepage
: i used string replacement to alter :) to a smile image etc.. but i wanna be able to use random numbers, like a match all