Connecting Tech Pros Worldwide Forums | Help | Site Map

Method Not Allowed on a web site

nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 570
#1: Mar 18 '08
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.phtml.

--------------------------------------------------------------------------------
Apache/1.3.37 Server at continuingedventure.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.phtml
method="POST"> [/PHP]

but if i change the code it works. My website
[PHP]<form action=http://CBS.com/quiz/quizaction.phtml
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's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#2: Mar 18 '08

re: Method Not Allowed on a web site


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
nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 570
#3: Mar 18 '08

re: Method Not Allowed on a web site


Quote:

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
nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 570
#4: Mar 18 '08

re: Method Not Allowed on a web site


Quote:

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
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#5: Mar 18 '08

re: Method Not Allowed on a web site


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
nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 570
#6: Mar 18 '08

re: Method Not Allowed on a web site


Quote:

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
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#7: Mar 18 '08

re: Method Not Allowed on a web site


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

Ronald
nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 570
#8: Mar 19 '08

re: Method Not Allowed on a web site


Quote:

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.
nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 570
#9: Mar 19 '08

re: Method Not Allowed on a web site


Quote:

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
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#10: Mar 19 '08

re: Method Not Allowed on a web site


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 misunderstanding.

Ronald
nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 570
#11: Mar 19 '08

re: Method Not Allowed on a web site


Quote:

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 misunderstanding.

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
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#12: Mar 19 '08

re: Method Not Allowed on a web site


It's okay mate! See you around.

Ronald
Reply