: Is there an easier/programmatic way to migrate HTML forms to an IIS7 server? Normal HTML pages work fine on an IIS7 server as do ASP pages. However when I try to add a HTML form and after
Normal HTML pages work fine on an IIS7 server as do ASP pages. However when I try to add a HTML form and after clicking on the submit button, I receive the error:
The HTTP verb POST used to access path
'/FormServer/Mig/_vti_bin/shtml.dll/admissions/askseaaggie.htm' is not
allowed.
Currently the only solution I know is to rebuild the entire form using ASP.NET markup.
More posts by @Angela700
1 Comments
Sorted by latest first Latest Oldest Best
The question is a bit confusing, but I'll try and answer it as I understand it.
HTML pages don't process form data (unless you are using the GET form method, in which case you can extract values from the querystring), so you would have to point the form's 'action' attribute at a dynamic server page. Assuming (from your mention of it) that this is ASP, then you would set the action value like so:
<form method="post" action="myserverpage.asp">
<input name="firstname" type="text"/>
<input name="lastname" type="text"/>
</form>
Then you use a server-side script (e.g. in 'myserverpage.asp') to access the POSTed form values. What you do with them is up to you, but a simple example in classic ASP (as opposed to .Net) would be something like:
<%
response.write(request.form("firstname"))
response.write(request.form("lastname"))
%>
Which would render the two values back to the client's browser.
So, in summary, the HTML page's form POSTs (i.e. submits) the two values to the 'action' page, whereupon the ASP retrieves the POSTed values and responds by writing them out to the client.
If this isn't working, it means you haven't correctly installed ASP on IIS7 (it is off by default), follow these instructions for your OS:
www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis
(Basically, enable 'ASP' in control panel>turn features on/off>windows features)
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.