|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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. |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
||||
|
||||
|
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... ![]()
__________________
Reinventing the wheel again |
|
#4
|
||||
|
||||
|
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'... ![]() |
|
#5
|
|||
|
|||
|
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?
|
|
#6
|
||||
|
||||
|
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. |
|
#7
|
|||
|
|||
|
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.
|
|
#8
|
||||
|
||||
|
damn, thanks... appreciate the help
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Checking server for CF? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|