You'll need to looking at converting newline characters to <br /> tags on
display, etc. Or <p> if you want to be a bit more semantic about it. A regex
on the value to replace should work a treat. Google or php.net for the
specifics of the regex use and form.

Andrew

-----Original Message-----
From: Angelo Zanetti [mailto:[EMAIL PROTECTED] 
Sent: 18 November 2004 14:14
To: [EMAIL PROTECTED]
Subject: [PHP] php/html displaying query

HI all, 

I have this situation & think that maybe some of you could advise me on
a solution.

I have a field in my database which is about a few paragraphs long.
When the user edits this paragraph using php/html in a textarea it
displays correctly with the lines that separate the paragraphs. These
lines are merely blank lines.

However when I want to display this field in HTML I have a problem that
its all bunched into 1 paragraph, obviously because there are no <p> or
<br> tags telling the browser there is a space in between, 1 way to get
this to work is to to insert <p> or <br> statements in the paragraph but
when the user then edits the paragraph in the textarea it will show the
<p> or <br> tags which i dont want, they are end users and will probably
delete them. Is there a way to get around this?? either displaying the
blank line or by hiding the HTML tags in the textarea (but still saving
the paragraph with them in)

Thanks in advance.

Angelo
--------------------------------------------------------------------
Disclaimer 
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is 
intended for the attention and use only of the addressee. 
Should you have received this e-mail in error, please delete 
and destroy it and any attachments thereto immediately. 
Under no circumstances will the Cape Technikon or the sender 
of this e-mail be liable to any party for any direct, indirect, 
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to 
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to