You are here: Re: display line break « HTML « IT news, forums, messages
Re: display line break

Posted by tony wong on 10/10/06 13:24

Thanks to all guys


"jojo" <jojo.hafner@gmx.de> ΌΆΌg©σΆl₯σ·s»D:ege98p$dbg$1@registered.motzarella.org...
> RvT wrote:
>
>>> the input is captured in <textarea>
>>> there are line breaks.
>>> how to display line breaks when using response.write? Thanks a lot.
>>>
>>> tony
>>
>> A line break is represented by chr(13), so you have to replace chr(13)
>> by a <BR />.
>>
>
> You could also put the whole text into a <pre> (unless is's a complete
> html-document with <head> and <body> or the input includes any tags which
> aren't allowed in a <pre>). Would perhaps be more easy than replacing all
> line breaks...
> HTH, jojo

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация