Jump to content

[SOLVED] How to format a chunk of user inputted text?


spikypunker

Recommended Posts

Hey guys

 

Am developing a user small scale user community, have asked a few questions for it so far, and it's going real well.

 

I'm not very advanced with my PHP and have had this problem in the past but have just lived with it before but now i really wanna sort it out.

 

When someone makes a profile they can put in thier details, most being single lines. However there is an About Me box where they invariably end up putting in some parabreaks. When this goes into the database they are still present but obviously when its read back into a page it ignores the returns so i get a chunk of text.

 

I'm not 100% but it used to be a simple case of putting the text inside a <p> tag which used to keep the formatting but it's changed now.

 

Is there a simple way to achieve this?

 

Peace

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.