Re: HTTP Error 405 using POST method
| From: | Rainer | Date: | Mon, 04 Feb 2002 21:33:28 +0000 |
| Subject: | Re: HTTP Error 405 using POST method | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83564@lists.php.net to get a copy of this message | ||
In your example I see that you forgot </head> after your </title> ... maybe
that's the problem!
"Scott Adams" <scott.adams@daishowaamerica.com> wrote in message
news:20020204180746.86161.qmail@pb1.pair.com...
> Hi. I'm learning PHP3 on an IIS 4.0 box and I started by trying out this
> simple HTML form. The form lets the user input his/her name, email
address,
> and select whether he/she likes oranges or apples and sends the data to a
> .php file that displays what the user input on the HTML form. The form
> method is POST. When I submit the data I type, I receive an HTTP Error 405
> message with the following text:
> <start of error message>
> 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.
>
> Please contact the server's administrator if this problem persists.
> <end of error message>
>
> Here is the HTML page with the form I am using:
>
> <HTML>
> <HEAD>
> <TITLE>Request for more information</TITLE>
> <BODY>
> <CENTER>Would you like more information about our company?
> <P>
> <FORM ACTION="email.php3" METHOD="POST">
> Your name:<BR>
> <INPUT TYPE="text" NAME="name" SIZE="20"
> MAXLENGTH="30">
> <P>
> Your email address:<BR>
> <INPUT TYPE="text" NAME="email" SIZE="20"
> MAXLENGTH="30">
> <P>
> I prefer:
> <SELECT NAME="preference">
> <OPTION value = Apples>Apples
> <OPTION value = Oranges>Oranges
> </SELECT>
> <P>
> <INPUT TYPE="submit" VALUE="Send it!">
> </FORM>
> </CENTER>
> </BODY>
> </HTML>
>
> What am I doing wrong?
>
>