April 1st, 2004, 01:07 PM
-
Problem passing values...
Please see post #4... my question has changed based upon replies...
I'm still not certain that the CF server is installed on my webserver.
Last edited by mateoc15; April 1st, 2004 at 02:09 PM.
April 1st, 2004, 01:38 PM
-
You can just upload a .cfm file and try to run it in the browser. It doesn't even need to have any actual CFML code in it, the test is to see if the server knows to pass the .cfm file to the CF engine. If it doesn't work, you know CF is not enabled.
April 1st, 2004, 01:42 PM
-
So if a .CFM file comes up as HTML at all, then it's all good?
Can anyone explain the METHOD NOT ALLOWED: POST error then? I'm using method post to get variables from the form from a previous page, but they're not working...
Discontent is the first necessity of progress. - Edison
April 1st, 2004, 01:49 PM
-
For example... test.cfm
<HTML>
<HEAD>
<TITLE>Welcome to the Test</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=4 STYLE="font-size: 16pt">
<B>Welcome to the ColdFusion Test Application:</B></FONT></P>
<FORM ACTION="test2.cfm" method="get">
<P><FONT SIZE=3><B> Please enter your name here:
<INPUT TYPE=TEXT NAME="name" SIZE=25></B></FONT></P>
<P><FONT SIZE=3><B> Please enter your telephone here:
<INPUT TYPE=TEXT NAME="phone" SIZE=25></B></FONT></P>
<DIV ALIGN=LEFT>
<P><FONT SIZE=3><B> <INPUT TYPE="Submit">
</DIV>
</FORM>
</BODY>
</HTML>
goes to test2.cfm
<HTML>
<HEAD>
<TITLE>This page interprets the data from test.cfm</TITLE>
</HEAD>
<BODY>
<CFOUTPUT>
<H2>#form.name#</H2>
<H2>#form.phone#</H2>
</CFOUTPUT>
</BODY>
</HTML>
which generates this html output:
#form.name#
#form.phone#
It's not actually using the variable names that I put in there, it's displaying '#form.name#' instead of the value inserted for 'name'...
Discontent is the first necessity of progress. - Edison
April 1st, 2004, 02:24 PM
-
Sounds like it's not installed. If you look at the source code for test2.cfm, do you see the <cfoutput> tags in the source?
April 1st, 2004, 02:38 PM
-
yeah, i see the CFOUTPUT when i'm using method GET in the first part... if i use method POST in the first part, i get METHOD NOT ALLOWED: POST (405 error)
but CFOUTPUT is there...
Last edited by mateoc15; April 1st, 2004 at 02:41 PM.
Discontent is the first necessity of progress. - Edison
April 1st, 2004, 02:53 PM
-
Then that means it's not installed. If CF were installed, the <cfoutput> tags would have been processed by the server and not passed to the browser.
April 1st, 2004, 02:56 PM
-
damn, thanks... appreciate the help
Discontent is the first necessity of progress. - Edison