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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to post back to self

Status
Not open for further replies.

SuaveRick

Programmer
Apr 12, 2004
142
CA
Hi there, how can I get my ASP page to post back to itself? If I put the asp code in the same page as the form it just runs the asp......

Thanks!
 
<form action="" method=post>

_______
I love small animals, especially with a good brown gravy....
 
Thanks but as soon as the asp page loads it runs the asp code instead of waiting for the form to submit...
 
put in a hidden input field such as
Code:
<input type=hidden name="itRan" value=1>

Then at the top of your code:
Code:
if request("itRan") <> 1

 ....all your code here

end if

_______
I love small animals, especially with a good brown gravy....
 
Excellent idea my friend, top drawer!!!

Thanks!
 
Glad to have helped.

_______
I love small animals, especially with a good brown gravy....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top