Skip to main content
Participant
August 23, 2011
Question

ColdFusion form and input tags not displaying.

  • August 23, 2011
  • 2 replies
  • 858 views

I recently installed ColdFusion 9 Developer edition and installed it on my laptop. I tried creating a simple form and seeing if I could get it to show up but nothing happens. I also tried this with my web host who supports ColdFusion and nothing. Anyone know what I am doing wrong? I've used ColdFusion b4 and even my old code won't work? Perhaps there is something I am missing for the newer ColdFusion?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>CF Test</title>

</head>

<body>

     <cfoutput>

        <cfform action="cftest.cfm" method="get">

            <cfinput type="text" name="FileFilter" size="80" value="Shwa" class="textfield">

        </cfform>

    </cfoutput>

</body>

</html>

    This topic has been closed for replies.

    2 replies

    Inspiring
    August 23, 2011

    Are you saying that the code you posted results in a blank page?

    If you view the html source code, does anything appear?

    What happens if you put some static text before and after your form?

    Participant
    August 23, 2011

    If I put any html in it will display. Anything thats written in ColdFusion will not display. I looked at the debugger in my browser and there were no errors. The html shows the coldfusion tags. Which it shouldn't, it should display as strait html since its a server side language. Which makes me thinks its not even looking at this as ColdFusion code but strait html instead. My file has a cfm extension, is it possible that the doctype info at the top of the document could be messing it up?

    I just found out after doing more searching that my web host does not support ColdFusion. This means that its not the code its the install of ColdFusion 9. Is there a setting that I am supposed to change in order for it to start working? The documentation doesn't really tell you...

    I tried reinstalling ColdFusion 9 and it still doesn't display anything.

    Participant
    August 23, 2011

    I was finally able to figure out the problem. Thanks for the responses.

    Inspiring
    August 23, 2011

    You mean you see NOTHING?

    What do you see if you look at the mark-up delivered to the browser?

    Do you get any JS errors?

    --

    Adam