i am developing a site in which i have quiz page.After submitting the page the page with answer should display.But i am having an error msg that POST method not allowed for URL exampl\quiz.html But it was properly running in my localhost the problem occurs only in online. Can any body help me?
sorry the code was actually not in php it was aspx pages but i'm trying to convert it in php first i just renamed the extension as .html instead of .aspx will it cost any effect in this case? but all my other pages are running.
If your ASP.net code is in C#, you can post it. I'll convert it to PHP. Also, simply renaming a file from .aspx to .html will not convert anything - it will just be treated the wrong way by the server.
Since i'm not familiar with ASP.net i dont know whether it is coded in C# or not. ok then what can i do here? Up to my knowledge i cant find any asp codes in that page except some commented lines...
This error can occur in several situations. The following list includes some of the most common reasons developers encounter this issue: The action attribute of a form does not point to an executable script or there is no file specified for the action (in which case, the action field in the Property inspector is blank). The form’s action attribute points to an HTML file. A developer saves web pages with an HTM or HTML file extension instead of ASP, PHP, CFM or JSP file extensions, and specifies HTM or HTML as the default file extension in the site definition.