Hi,

I am making a mailing program and the problem i'm having is that I want to display the message exactly as it is entered for example, when the sender presses enter for a new line the reciever see's it.

I have thought of using <pre></pre> tags but if the sender doesn't enter a new line the message will spread on 1 line.

Thank you

Why don't you use this little function nl2br ?? Turs new lines into HTML new lines....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.