Hi.
In which way is this a MySQL related problem? Please choose a more
appropriate forum next time.
On Fri 2003-01-31 at 18:22:50 +0200, [EMAIL PROTECTED] wrote:
> Hi,
>
> >From a web form I am collecting information to a table. On the form there is
> a textarea element storing to a text field on the mysql table. Since the
> textarea can hold the enter key, it's stored in to the field also, but when
> i try to call that cell and display it on the web page, i see that line
> breaks are ignored. But the sentences must be displayed as they are entered.
>
> - what is the stored character code of the enter key in the text field, i am
> figuring out to find that character and replace it with the <br> element,
> for the exact display,
Depends on the browser used to enter the text. Usually it's '\n'
(i.e. the character with code 10 resp. hex 0x0A)
> - do you have a shorter way to do this?
Not really, except if you are happy with using <PRE>
Bye,
Benjamin.
--
[EMAIL PROTECTED]
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php