Forms + HTML

Results 1 to 4 of 4

Thread: Forms + HTML

  1. #1
    TrevStunna Guest

    Default Forms + HTML

    If i were to try to make a news script where a user inputs text into a large form, i would like it to output the text as html.<BR><BR>i want it to output the text just as it is typed. With &#039;Enter&#039; And everything.<BR>Like<BR><BR>This.<BR><BR>Without having to type &#039;&#060;br&#039;<BR><BR>How do you do that?

  2. #2
    Mike Shaffer Guest

    Default RE: Forms + HTML

    You might be talking about the FAQ on replacing vbCRLF with &lt;br&gt; to show line breaks. Is that correct?

  3. #3
    Join Date
    Dec 1969

    Default RE: Forms + HTML

    server-side? Server.HTMLEncode() would be your man. if that doesn&#039;t replace linebreaks, do it manually with Replace(vbcrlf, "&#060;br /&#062;")<BR><BR>j

  4. #4
    Join Date
    Dec 1969

    Default RE: Forms + HTML

    textenteredbyclient = request.form("textenteredbyclient")<BR><BR>textent eredbyclient = replace(textenteredbyclient, chr(13), "<BR>")<BR><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