Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting to another page or form HELP!! 1

Status
Not open for further replies.

kavita11

Programmer
Oct 27, 2001
32
US
I have 2 ASP based forms.One is a registration form with a submit button.The user hits submit after filling out all the information and then goes on to an agreement page.Which has 2 buttons Agree and disagree.If agree is clicked he goes onto another form where he is supposed to enter the username and password.But if he clicks disagree I want the first page where the user entered all the information to show up blank without all the information.Also I dont want the user to click the back button on the browser and view the agreement page again.I tried using response.redirect to the first page where the user enters the information but I dont think it works right.Need help on this,
Thanks
Kavita
 
Kavita,

I don't think you can remove that form page from the browser history because you're posting a form from it. So I don't think you can hide it from the back button.

Here's how you want to navigate from the cancel button. You actually do that with JavaScript.

<input type=&quot;button&quot; value=&quot;Cancel&quot; onClick=&quot;javascript:window.location.href='somepage.asp'&quot;>

I made the single quotes around the page url black so you could distinguish them from the double quotes.

Let me know if you have any other questions.

ToddWW :)
 
Thank you Todd your tip was very helpful
Kavita
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top