Professional Web Applications Themes

Problem with redirection in a Form... - ASP

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 ...

  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. #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" <calvinlci.campbell.ca.us> wrote in message
    news:054b01c34a66$e50f4a50$a301280aphx.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

  3. #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

Similar Threads

  1. Redirection Problem
    By Topspin in forum PHP Programming
    Replies: 4
    Last Post: February 2nd, 07:16 AM
  2. ASP redirection
    By Ianmundy in forum Dreamweaver AppDev
    Replies: 2
    Last Post: February 20th, 03:28 AM
  3. Passport Redirection Problem.
    By Munna in forum ASP.NET Security
    Replies: 2
    Last Post: July 14th, 10:06 AM
  4. Redirection Help Please
    By RX in forum PHP Development
    Replies: 3
    Last Post: February 22nd, 09:46 AM
  5. header() redirection/session variable problem
    By Nick Whitelegg in forum PHP Development
    Replies: 1
    Last Post: September 17th, 07:39 PM

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
  •  

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