#1
  1. Business Analyst
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2004
    Location
    The 'Ville
    Posts
    1,087
    Rep Power
    22

    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. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,263
    Rep Power
    968
    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.
  4. #3
  5. Business Analyst
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2004
    Location
    The 'Ville
    Posts
    1,087
    Rep Power
    22
    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
  6. #4
  7. Business Analyst
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2004
    Location
    The 'Ville
    Posts
    1,087
    Rep Power
    22

    Unhappy


    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
  8. #5
  9. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,263
    Rep Power
    968
    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?
  10. #6
  11. Business Analyst
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2004
    Location
    The 'Ville
    Posts
    1,087
    Rep Power
    22
    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
  12. #7
  13. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,263
    Rep Power
    968
    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.
  14. #8
  15. Business Analyst
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2004
    Location
    The 'Ville
    Posts
    1,087
    Rep Power
    22
    damn, thanks... appreciate the help
    Discontent is the first necessity of progress. - Edison

IMN logo majestic logo threadwatch logo seochat tools logo