Im writing code for a message board system and get the following error when trying to submits postings:
HTTP Error 405:
405 Method not allowed.
The Method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting.
I'm posting as follows:
<FORM method=post action="<?php echo PHP_SELF ?>">
Please Help
Submitting to a database (help!)
Moderator: General Moderators
Hmmm? Based on your code, I'm suprised you're not seeing a parse error as I don't see a ";" on the end of that echo.
Is there a way to verify that PHP_SELF is being properly echo'ed in the HMTL? Look at the source before pressing the submit button and see what form tag looks like.
Hope that helps,
BDKR (TRC)
Is there a way to verify that PHP_SELF is being properly echo'ed in the HMTL? Look at the source before pressing the submit button and see what form tag looks like.
Hope that helps,
BDKR (TRC)
- RandomEngy
- Forum Contributor
- Posts: 173
- Joined: Wed Jun 26, 2002 3:24 pm
- Contact:
The last line within any <?PHP ?> tags does not require a ;BDKR wrote:Hmmm? Based on your code, I'm suprised you're not seeing a parse error as I don't see a ";" on the end of that echo.
Is there a way to verify that PHP_SELF is being properly echo'ed in the HMTL? Look at the source before pressing the submit button and see what form tag looks like.
Hope that helps,
BDKR (TRC)
Try it yourself, take off the very last ; in any of your scripts, but having said that I think it good programming pratice to include all ;
Mike