Web Hosting Offers
See the new scripts recently added to Dynamic Drive. Click here.
Original, practical CSS codes and examples such as CSS menus for your site.
    Search code samples  
 
  Keyword
 
 
 
   
 
 
  Code Samples
 
ASP
CSS
Dhtml
Html
Javascript
PHP
 
   
     LOGIN HERE  
 
Username
Password
Forgot Password
Verify Signup
 
 
 

ASP >> Forms

How can I maintain a TEXTAREAs line breaks in an Web page?

Visitor Ratings (0) :
Description
when a user enters a carraige return in the TEXTAREA, a simple vbCrLf (or carraige return) is entered. Carraige returns are skipped over when parsing HTML... If you want to force a linebreak in HTML, you must use the <BR> tag. Therefore, to maintain the line breaks entered by the user in the TEXTAREA, you must first replace all the carraige returns (vbCrLf) with <BR> tags. You can use the Replace function to do this!
Code
Select All
 Rate this Resource