Hi all,
I have created a html form and put it in the www/examples/ directory. when i am trying to submit the form it says Method post is not allowed by this server. What is the possible fix for this error.
when i put the same form in php file and submit the form its working fine. why the behaviour is so awkward.
sharma www.manisharma.s4u.org
There's no such thing as a PHP form. Your 'PHP form' is written in HTML.
What PHP does is process the form, so your PHP code is the code that processes the form, and does not (directly) output the form.
PHP can only process post as the method or you will get a failure.
Your pages must contain .php for its extension so the server knows what to interpret.
Not quite. The possible values for the method are "get" and "post", with "get" as the default. PHP can handle both, using the $POST and $GET superglobal arrays, respectively.
I am a bit confusing and not presenting the problem properly. I have not get the proper answer.
sharma
Originally posted by phpsharma I am a bit confusing and not presenting the problem properly. I have not get the proper answer. sharma
the error you get is due to a server configuration
either forms are not allowed POST in that directory, or your web host needs to fix something...