PDA

View Full Version : Method Not Allowed?



sidorak95
12-26-2007, 10:52 AM
I'm trying to make a newsletter for my site. I made a sign up site and a site that makes it process. (Not really... Just a test)
When I publish it, I get the following error message.

The requested method POST is not allowed for the URL /test2/Processing.htm.

The link is this...http://www.fungamesuniverse.com/test2/Pop-Up1.htm
It doesn't work. On preview web in Frontpage, it works. A video is attached. Am I doing anything wrong?
Vid1 here: www.fungamesuniverse.com/clip0005.avi
Vid2 here: www.fungamesuniverse.com/clip00056.avi
If you just go to the link, it works.

Depeche
12-26-2007, 11:09 AM
What script are you using for the processing?

sidorak95
12-26-2007, 02:09 PM
I'm not actually processing it. It's just a test so far.

Depeche
12-26-2007, 03:13 PM
I do not understand the problem. Give me some code or something to look at!

sidorak95
12-26-2007, 04:46 PM
The code of www.fungamesuniverse.com/test2/Pop-Up1.htm


<HTML>
<HEAD>
<TITLE>Play Your FREE Game!</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff">
<CENTER>
<TABLE BORDER="0" CELLPADDING="2" ALIGN="Center">
<TR>
<TD BGCOLOR="green"><P ALIGN=Center>
<FONT face="Verdana,Helvetica" SIZE="3" color="white">
<B>Play your free Christmas Game!</B></FONT>
</TD>
</TR>
<TR>
<TD>
<p align="center"><B><FONT face="Verdana,Helvetica" SIZE="3"><BR>
Congratulations! You found the correct Holly! The game will be right below.
You will also get a chance to subscribe to our newsletter!</FONT></B><BR>
<BR>
<FORM METHOD="POST" ACTION="Processing.htm">
<CENTER>
<TABLE BORDER="0" CELLPADDING="2" ALIGN="Center">
<TR VALIGN="Top">
<TD>
<INPUT type="text" name="email" value="username@domain.com"
size="30" onfocus="value=''">
<INPUT TYPE="submit" VALUE="Subscribe"></TD>
</TR>
</TABLE>
</CENTER>
</FORM>
<P ALIGN=Center>
<BR>
<A HREF="javascript: self.close()"><FONT face="Verdana,
Helvetica" SIZE="2">Close Window</FONT></A><BR>
</TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>


Code of the page error takes place


<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<META HTTP-EQUIV="refresh" CONTENT="5; url=http://www.fungamesuniverse.com">
<title>Processing...</title>
</head>

<body background="TXBK.jpg">

<p align="center"><font size="7" face="Arial Black" color="#FFFFFF">Processing
Your Request...</font></p>

<p align="center"><img border="0" src="Dot1.gif" width="18" height="18">&nbsp;&nbsp;&nbsp; <img border="0" src="Dot2.gif" width="18" height="18">&nbsp;&nbsp;&nbsp;
<img border="0" src="Dot3.gif" width="18" height="18">&nbsp;&nbsp;&nbsp; <img border="0" src="Dot4.gif" width="18" height="18">&nbsp;&nbsp;&nbsp;
<img border="0" src="Dot5.gif" width="18" height="18">&nbsp;&nbsp;&nbsp; <img border="0" src="Dot6.gif" width="18" height="18">&nbsp;&nbsp;&nbsp;
<img border="0" src="Dot7.gif" width="18" height="18">&nbsp;&nbsp;&nbsp; <img border="0" src="Dot8.gif" width="18" height="18"></p>

</body>

</html>


Going to it directly doesn't give you error message.

Depeche
12-26-2007, 05:24 PM
Oh! I get what you are trying to do! You should have the Processing Your Request in the processing code of the thing that translates it and adds to the email list.

linFox
12-26-2007, 07:17 PM
From what I can understand, right now you're trying to POST a form straight to a static html page.
That won't do anything, because static html cannot parse a POST request. The server knows this and tells you that - the 'Method not allowed' error.

If you just want to test the form, rename the forms action (Processing.htm) to an extension that can be POSTed to, like .php
You wont have to change anything in the file, just the name.