How to get line breaks from a form input to <BR> i

Results 1 to 5 of 5

Thread: How to get line breaks from a form input to
i

  1. #1
    Martin, Sweden Guest

    Default How to get line breaks from a form input to
    i

    Hey dudes!<BR><BR>When a user make a enter push in a form, just like in this forum, I want that to be a <BR> in my database!<BR><BR>Thanks<BR>Martin, Sweden

  2. #2
    Martin, Sweden! Guest

    Default RE: How to get line breaks from a form input to "B

    I should have been the HTML tag "BR" in my mess!

  3. #3
    Join Date
    Dec 1969
    Posts
    309

    Default RE: How to get line breaks from a form input to

    Hi Martin,<BR>Try this:<BR>strTextBox = Replace(Request.form("TextBoxForm"), vbcrlf, "<BR>")<BR>&#039 where Request.form("TextBoxForm") is the information the users enter in the form. Once you&#039ve done this, you can then insert it into a database or manipulate strTextBox.<BR><BR>This code translates a carriage return (Enter) into <BR>.<BR>Let us know how ya go.

  4. #4
    Martin, Sweden Guest

    Default RE: How to get line breaks from a form input to

    Thanks guys!<BR>Really kind of ya!<BR><BR>:-)<BR><BR>Works fine


  5. #5
    Martin Olsson Guest

    Default RE: How to get line breaks from a form input to

    I saw a nifty little article here on 4guys about this problem - I have used the solution and it is excellent. The article is called "Using Regular Expressions to Alter your HTML Code" and the link is http://www.4guysfromrolla.com/webtech/061399-3.shtml<BR><BR>Since your problem is already solved you may not need this, but the technique is very cool.<BR><BR>Regards<BR><BR>Martin II, Sweden <BR>(lycka till)<BR>

Posting Permissions

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