|
 |
access_asp thread: delete posted variables on page load
Message #1 by jake williamson <jake.williamson@2...> on Tue, 18 Feb 2003 12:50:24 +0000
|
|
hmmm,
i reckon this is pretty easy - a weeks holiday has left my head fuzzy...
page 1 has a form that posts to page two. if the result is correct on page
two it redirects you off to a 'success!' page. if the result is incorrect,
i'd like to stay on the page and show a 'have another go' form.
so what i need to do is delete the posted variables, otherwise the script
just loops and loops (i.e. if the result is incorrect, it just keeps
re-loading the page and errors itself again.)
is there a way to kill the posted variables?
thanks out there,
cheers,
jake
Message #2 by "Ken Schaefer" <ken@a...> on Wed, 19 Feb 2003 11:36:42 +1100
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "jake williamson" <jake.williamson@2...>
Subject: [access_asp] delete posted variables on page load
: page 1 has a form that posts to page two. if the result is correct on page
: two it redirects you off to a 'success!' page. if the result is incorrect,
: i'd like to stay on the page and show a 'have another go' form.
:
: so what i need to do is delete the posted variables, otherwise the script
: just loops and loops (i.e. if the result is incorrect, it just keeps
: re-loading the page and errors itself again.)
:
: is there a way to kill the posted variables?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Don't "kill" the posted variables. Assign the values to your own "internal"
variables, and work with those.
In any case, posting to the same page will probably make your life easier:
www.adopenstatic.com/resources/code/UIValidation.asp
Cheers
Ken
|
|
 |