Method Not Allowed on a web site

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    Method Not Allowed on a web site

    Hello everyone:
    I have a question to ask you.

    I'm make a quiz and I get this error

    Method Not Allowed
    The requested method POST is not allowed for the URL /quiz/quizaction.phtm l.

    --------------------------------------------------------------------------------
    Apache/1.3.37 Server at continuingedven ture.com Port 80

    Here is part of my code that is giving me problems

    If i upload this file and then I view that page I get an error. The clients site.
    [PHP]<form action=http://abc.com/quiz/quizaction.phtm l
    method="POST"> [/PHP]

    but if i change the code it works. My website
    [PHP]<form action=http://CBS.com/quiz/quizaction.phtm l
    method="POST"> [/PHP]

    Question is why does it work on one host site and not the other.
    The clients site supports php
    what do I need to do.

    thanks
    nomad
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    A reason can be that the host site script does not want to be posted, but only GET strings. You better ask the website admin of that host.

    Ronald

    Comment

    • nomad
      Recognized Expert Contributor
      • Mar 2007
      • 664

      #3
      Originally posted by ronverdonk
      A reason can be that the host site script does not want to be posted, but only GET strings. You better ask the website admin of that host.

      Ronald
      thanks again Ronald.
      I email them and I have not heard from them. I hope that is not the case.
      If so I don't know what I'm going to do.I'm working a subcontractor for another web designer.

      damon

      Comment

      • nomad
        Recognized Expert Contributor
        • Mar 2007
        • 664

        #4
        Originally posted by ronverdonk
        A reason can be that the host site script does not want to be posted, but only GET strings. You better ask the website admin of that host.

        Ronald
        Well they say it's php is working properly.
        I need to find out why it's failing.

        any ideals???

        damon

        Comment

        • ronverdonk
          Recognized Expert Specialist
          • Jul 2006
          • 4259

          #5
          Then the only solution is to show the code of the html form. I cannot think of anynother way to go about this. Maybe there is something funny.

          Ronald

          Comment

          • nomad
            Recognized Expert Contributor
            • Mar 2007
            • 664

            #6
            Originally posted by ronverdonk
            Then the only solution is to show the code of the html form. I cannot think of anynother way to go about this. Maybe there is something funny.

            Ronald

            I Figure it out it was the extention.

            damon

            Comment

            • ronverdonk
              Recognized Expert Specialist
              • Jul 2006
              • 4259

              #7
              OK, I see. But you said before that the extensions were identical on both systems, isn't it?

              Ronald

              Comment

              • nomad
                Recognized Expert Contributor
                • Mar 2007
                • 664

                #8
                Originally posted by ronverdonk
                OK, I see. But you said before that the extensions were identical on both systems, isn't it?

                Ronald
                Ronald:
                one of the files has some php coding in it I saved it as
                .phtml (what the heck was I doing, I found a site on how to build a quiz ) should have been .php

                dumb mistake.

                damon
                PS thanks for taking the time in helping me.
                Also have a great time with your sons.

                Comment

                • nomad
                  Recognized Expert Contributor
                  • Mar 2007
                  • 664

                  #9
                  Originally posted by nomad
                  Ronald:
                  one of the files has some php coding in it I saved it as
                  .phtml (what the heck was I doing, I found a site on how to build a quiz ) should have been .php

                  dumb mistake.

                  damon
                  PS thanks for taking the time in helping me.
                  Also have a great time with your sons.

                  Opps sorry wrong person...
                  damon

                  Comment

                  • ronverdonk
                    Recognized Expert Specialist
                    • Jul 2006
                    • 4259

                    #10
                    I must admit: I completely overlooked that the extension was not .PHP! Maybe I am so biased that I automatically assume that all php code is in a .php extesnsion script.

                    Sorry for my misunderstandin g.

                    Ronald

                    Comment

                    • nomad
                      Recognized Expert Contributor
                      • Mar 2007
                      • 664

                      #11
                      Originally posted by ronverdonk
                      I must admit: I completely overlooked that the extension was not .PHP! Maybe I am so biased that I automatically assume that all php code is in a .php extesnsion script.

                      Sorry for my misunderstandin g.

                      Ronald
                      Ronald don't worry about it.
                      You have help me in the pass and you also gave me some clues to solve this problem. I should have read the error code better.

                      damon

                      Comment

                      • ronverdonk
                        Recognized Expert Specialist
                        • Jul 2006
                        • 4259

                        #12
                        It's okay mate! See you around.

                        Ronald

                        Comment

                        Working...