PDA

View Full Version : What to replace for a "br" tag?


wert
10-29-2002, 03:03 AM
I have a page that it's main text it's filed out with the value of a mysql table's field , the text area of the form filling the mysql data uses "i don't know what" to separete paragrafs.

In fact the cuestion it is responded in this fourm:
what caracter, ASCII number, or else it is used as the html's tag br?

I mean what is between the 1 and the 2 :
1
2
that I can replace with the html's br tag?

Any help will be usefull, thnx.

Nightfire
10-29-2002, 04:00 AM
Not understanding you right? You want to create the <br> tag? or change the <br> tag to something else?


$fieldname = nl2br(fieldname);
echo $fieldname;


or


$fieldname=str_replace('<br />','',$fieldname);

wert
10-29-2002, 06:23 AM
sorry my english is not so good, but I guess the first option is the one i'm looking for, if "nl2br" is a predefined function that converts a end line into a br tag (that's what I guess from the name of it)


Thnx