Log in

View Full Version : Problem with optional profilfields to show carriage returns


Robert9
06-03-2004, 06:58 PM
I use some extra profile fields for the people to enter longer texts in it. If a text ist longer than some lines people use to add carriage returns into to the text.

<- like this ;-)

Unfortunaltely vb doesnt look for that, e.g. showing the text in the user profile.

In perl i do something like this:

$profilefield['value'] =~ s/\n/<BR>\n/g;

How can i do that with php?

SVTBlackLight01
09-25-2004, 02:04 AM
Can anyone help here?