I get this error:
*********************
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.
**********************************
I have a simple ASP code to check whether Passwords match and if not click a back button to go back.
My ASP code is:
*************
SUB HiddenFields
FOR EACH thing IN Request.Form
%>
<INPUT NAME="<%=Thing%>" TYPE="HIDDEN" VALUE="<%=Request.Form(Thing)%>">
<%
NEXT
END SUB
%>
<%
' Check Whether Passwords Match
IF UCASE(Request.Form("Password"))<>UCASE(Request.Form("CHKPassword")) THEN
%>
<FONT SIZE=+2><i>The two passwords you entered do not match.</i>
<BR>Click Back to return to the previous page.</FONT>
<P>
<FORM METHOD="POST" ACTION="StuReg.htm" id=form1 name=form1>
<% HiddenFields %>
<INPUT TYPE="SUBMIT" VALUE="Back" id=SUBMIT1 name=SUBMIT1>
</FORM>
********************************
I get this error when the ASP Code written above is executed. There is a registeration htm file from which this ASP file is called. The ASP file validates whether the Passwords in the previuos form match or no. If not then, it passes back to the registeration htm file.
The error comes when I click a submit button 'back' on this ASP Page.
Well if the form submits unto itself, meaning it calls the same webpage its in, you'll get the error because not all the form fields are there that where in the previous form. This is a guess though because the above code is very incomplete and the entire code for the form isn't shown.
Since a Form is treated as one object its very hard to determine whether or not the form itself is causing the problem or the ASP code is causing the problem due to the incomplete code. If that is your complete code then it won't work because there is no FORM object on the page. You can create a form object simply by enclosing the form elements within <FORM></FORM> tags.
I would like to be of more help but without the complete form code that is impossible.
My suggestion is to have your password form submit unto itself and check itself. If the USERID and Password work then redirect the user to the previously secure page they requested, if not then show the whole form again with an error message.
Bookmarks