Mar 5, 2005 #1 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!
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!
Mar 5, 2005 #2 pkailas Programmer Jun 10, 2002 555 US <form action="" method=post> _______ I love small animals, especially with a good brown gravy.... Upvote 0 Downvote
Mar 5, 2005 Thread starter #3 SuaveRick Programmer Apr 12, 2004 142 CA Thanks but as soon as the asp page loads it runs the asp code instead of waiting for the form to submit... Upvote 0 Downvote
Thanks but as soon as the asp page loads it runs the asp code instead of waiting for the form to submit...
Mar 5, 2005 #4 pkailas Programmer Jun 10, 2002 555 US 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.... Upvote 0 Downvote
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....
Mar 5, 2005 Thread starter #5 SuaveRick Programmer Apr 12, 2004 142 CA Excellent idea my friend, top drawer!!! Thanks! Upvote 0 Downvote
Mar 5, 2005 Thread starter #6 SuaveRick Programmer Apr 12, 2004 142 CA Thanks very much, great idea!!! Upvote 0 Downvote
Mar 5, 2005 #7 pkailas Programmer Jun 10, 2002 555 US Glad to have helped. _______ I love small animals, especially with a good brown gravy.... Upvote 0 Downvote