Problem with redirection in a Form...

C

Calvin

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
 
R

Ray at

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
 
M

MDW

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top