Problem with redirection in a Form...

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Problem with redirection in a Form...

    Hi,

    Envronment: IIS 5 on W2k sp3

    Problem: I'm using a Form and when Submitted, will display
    a confirmation page. The confirmation page is simply a
    Form with an OK button. I want the browser to display
    either [1] the first form OR [2] to another page and I
    couldn't do either.

    Here's what I have problem with:
    For [2], I got the error
    HTTP 405 - Resource not allowed
    Internet Information Services
    although the page can be displayed if I paste the URL in
    the browser's address!
    I tried using BOTH:
    <input type="submit" value="OK"
    OnClick="javascript:window.location('thanks.htm')" >
    and specifying thanks.htm in the ACTION of the Form.

    For [1]: I couldn't get back to the original form with:
    <input type="submit" value="OK"
    OnClick="javascript:window.top.history.back()">

    Any ideas will be greatly appreciated, thnx!
    Calvin
    Calvin Guest

  2. Similar Questions and Discussions

    1. Redirection Problem
      I'm running PHP on Windows, but that's just the local test... in production it will be on Apache. I am not using PHP as a CGI. I want to perform...
    2. ASP redirection
      Hey, I have an idea and wonder if it's possible I want to have a form page with aboot three different drop down menus. once all the options...
    3. Passport Redirection Problem.
      Hi. all!!!!!!!! With Passport Authentication AFTER SESSION TIME OUT How can i redirect the user to the Passport login page. And after...
    4. redirection
      Thank you for your hel my question is: How can I redirect a visitor to a HTML site if he does not have flash plugin instaled on his computer? on my...
    5. header() redirection/session variable problem
      Hello, I'm having an odd problem with combining an authentication session variable with header() redirection. Basically I have an authentication...
  3. #2

    Default Re: Problem with redirection in a Form...

    I don't understand why you're using javascript to change the page location
    on submit buttons. Don't you want the form to submit? Just have the form
    submit and use Response.Redirect "thanks.htm" in ASP code. Or am I not
    understanding something you're trying to do?

    Ray at home





    "Calvin" <calvinl@ci.campbell.ca.us> wrote in message
    news:054b01c34a66$e50f4a50$a301280a@phx.gbl...
    > Hi,
    >
    > Envronment: IIS 5 on W2k sp3
    >
    > Problem: I'm using a Form and when Submitted, will display
    > a confirmation page. The confirmation page is simply a
    > Form with an OK button. I want the browser to display
    > either [1] the first form OR [2] to another page and I
    > couldn't do either.
    >
    > Here's what I have problem with:
    > For [2], I got the error
    > HTTP 405 - Resource not allowed
    > Internet Information Services
    > although the page can be displayed if I paste the URL in
    > the browser's address!
    > I tried using BOTH:
    > <input type="submit" value="OK"
    > OnClick="javascript:window.location('thanks.htm')" >
    > and specifying thanks.htm in the ACTION of the Form.
    >
    > For [1]: I couldn't get back to the original form with:
    > <input type="submit" value="OK"
    > OnClick="javascript:window.top.history.back()">
    >
    > Any ideas will be greatly appreciated, thnx!
    > Calvin

    Ray at Guest

  4. #3

    Default Problem with redirection in a Form...

    If all you want is for the address to change when you
    click on the button (and not actually submit any form data
    to an ASP page), then try

    <inuput type="button" onClick="....">
    >-----Original Message-----
    >Hi,
    >
    >Envronment: IIS 5 on W2k sp3
    >
    >Problem: I'm using a Form and when Submitted, will
    display
    >a confirmation page. The confirmation page is simply a
    >Form with an OK button. I want the browser to display
    >either [1] the first form OR [2] to another page and I
    >couldn't do either.
    >
    >Here's what I have problem with:
    >For [2], I got the error
    > HTTP 405 - Resource not allowed
    > Internet Information Services
    >although the page can be displayed if I paste the URL in
    >the browser's address!
    >I tried using BOTH:
    ><input type="submit" value="OK"
    >OnClick="javascript:window.location('thanks.htm') ">
    >and specifying thanks.htm in the ACTION of the Form.
    >
    >For [1]: I couldn't get back to the original form with:
    ><input type="submit" value="OK"
    >OnClick="javascript:window.top.history.back()">
    >
    >Any ideas will be greatly appreciated, thnx!
    >Calvin
    >.
    >
    MDW Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139