SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Where is the error being returned from? What line? What is all the code on the page? How are you submitting your original form?

    ------------------
    Wayne Luke - Sitepoint Forums Administrator
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com

    [This message has been edited by wluke (edited July 06, 2000).]

  2. #2
    SitePoint Member
    Join Date
    Mar 2000
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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>
    ********************************

    Any help will be greatly appreciated.

    Thanx in advance.

    Rgds.


  3. #3
    SitePoint Member
    Join Date
    Mar 2000
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

    Rgds

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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.

    ------------------
    Wayne Luke - Sitepoint Forums Administrator
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •