Hi Anna;

Depends if you are on a DOS (Windows) or Unix (Linux)
type of machine, but both are similar.

On both systems the character signaling the end of line
is non-visible ( ASCII Value 10 in Decimal, '0A' in HEX ).

Dos and Windows systems add an extra character, called
the Cariage-Return / Line-Feed combination.  ( ASCII Values
13 and 10 in Decimal, or '0D' and '0A' in HEX ).

You will need to parse the string for these values, and remove
them.

-aa-



-----Original Message-----
From: Gong Anna <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, January 25, 2000 1:53 PM
Subject: How to get rid of the "returns"


> Hi,
>Can someone tell me how to get rid of the new line characters (hard
returns)
>from a textarea input box before inserting the string into the database? I
>don't know what to look for in the string. Please help!! Thanks.
>Anna
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to