can't you just explode the string with "\n" as the separator? Look up
explode function at php.net.
- seb
-----Original Message-----
From: Alawi Albaity [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 14:06
To: [EMAIL PROTECTED]
Subject: [PHP] How can I Get Text as it Set
when a person write in a text area
i want to get it string and format it as it set
for example
when he write
---
how are all world
i do not see you
---
i want to store it as it set in my database
i not want it to be
----
how are all world i do not see you
---
Thanks
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]