POST error

Can anyone tell me what this error means?   Here's my form tag:

form id="form" name="form" method="post" action="thankyou.html">

The HTTP verb POST used to access path '/xxxx/yyyy/thankyou.html' is not allowed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The HTTP verb POST used to access path ' '/xxxx/yyyy/thankyou.html' is not allowed.

Who is Participating?

Improve company productivity with a Business Account.Sign Up

Akin DeluConnect With a Mentor I’m a software engineer, tech enthusiast and UI/UX lover. Commented:
you can not post data to an html file,

<form id="form" name="form" method="post" action="thankyou.html">
Om PrakashCommented:
Try the following

<form id="form1" runat="server">
add form controls and submit button if it is cross page posting
Text="Submit" />
HLRosenbergerAuthor Commented:

If I remove the post action/verb in the form tag, the problem goes away.  Does this make sense?   Is it maybe because there already is submit button on the page, and that’s doing the post when I click, so post in the form tag is redundant and unnecessary?

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

HLRosenbergerAuthor Commented:
Ah, also.  I forgot to mention.  This is straight HTML.  No ASP.  I have an HTML submit button.
Om PrakashCommented:
You mean to say that the page is html page in which you have the form is HTML page and the action will be another html page?  which will not be possible
HLRosenbergerAuthor Commented:
Ah OK.  I'm relatively new to WEB development.   I do use Visual Studio.  However, I was given a set of pure HTML pages - created in  DreamWeaver - to which I was asked to add Javascript to do input validation.  That I did.   But my boss also wants to navigate to another page, a "Thank You" page, after the user clicks the Submit button and if the validation passes.  I was told in another conversation EE that in such a scenario the navigation would have to be done on the server side.   Comments?
HLRosenbergerAuthor Commented:
Ok.  So, with WEB development - and as I said I'm relatively new - if HTML pages are created using some tool like Dreamweaver, is it true that at some point more than just HTML needs to be in the form in order to build a "real" page/site?   When the form is rendered in the browser, some how it needs to interact with the server, correct?

 why did you include that form tag in you last comment?
HLRosenbergerAuthor Commented:

I see what you mean.  It's starting to click in my head.  I can do a GET, and the data is passed on the URL.  
HLRosenbergerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.