:
: - 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,
That's what's normally done. Line breaks are usually represented by "\n"
escape character. So all you should do is replace all the instances of "\n"
with <br />. The following substitution will do the trick:
s/\n/<br>/g;
: - do you have a shorter way to do this?
There's no quite shorter way, there is however a dirty way. Simply wrap the
text between <pre> and </pre> tags while outputing to the browser.
Sherzod
sql, query
---------------------------------------------------------------------
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