Results 1 to 2 of 2

Thread: Multiple lines output?

  1. #1
    calvinfoo
    Guest

    Post Multiple lines output?

    I am using <TEXTAREA> as input from a form and submit it to SQL Server, and i keyed in multiple lines in. But when I use "response.write recobj(msg)" to display out as HTML, it came out in a single line. I tried to use "response.write server.HTMLEncode(recobj(msg))", it still the come out as single line as well. Please help, thanks.

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    you need to swap CRLFs for <BR>s

    x.htm
    Code:
    <HTML>
    
    <BODY>
    <FORM action='z.asp'>
    <TEXTAREA name=t>
    
    </TEXTAREA>
    
    
    <input type='submit'>
    </FORM>
    </BODY>
    </HTML>
    z.asp
    Code:
    <%@ Language=VBScript %>
    <HTML>
    <HEAD>
    
    </head>
    <BODY>
    <%
    
    dim t
    
    t= replace(request("t"),vbCrLf,"<BR>")
    	
    response.write(t)
    %>
    
    
    </BODY>
    </HTML>
    Mark
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width