代码之家  ›  专栏  ›  技术社区  ›  Vikas

如何在coldfusion中编码HTML表单?

  •  4
  • Vikas  · 技术社区  · 14 年前

    我刚接触coldfusion。

    我有一个叫做test1.cfm的页面

    <form action = "test2.cfm" method = "post">
        Type your name and hit submit:<br>
       <input type = "Text" name = "txt1">
       <input type = "Submit" name = "" value = "submit">
    </form>
    

    和test2.cfm

    <cfoutput>
        success
        #form.txt1#
        <a href="test1.cfm">back</a>
    </cfoutput>
    

    现在我想知道是否可以对test2.cfm页面中文本值的显示进行编码。 <br> 在文本框中,test2页面将呈现为html,我想停止呈现,它应该显示为文本。

    谢谢

    2 回复  |  直到 14 年前
        1
  •  10
  •   David Collie    14 年前

    它是HTMLEditFormat(),不是代码。

        2
  •  7
  •   Pradeep    14 年前

    使用