How to tell asp to do something only after a form is submitted?
Posted on 2004-08-18
I want to popup a message only after DW form resends the page to itself and collects a form value.
Right now my code on top of the page is:
if request.Form("signature") = 1 then
run insert into database code
alert("You must check the box in the agreement statement in order to apply to the program.");
<% end if %>
I know one can create a querystring and then confirm that the page has already run by requesting the querystring.
But is there an easier way? Basically, something to tell ASP "do this only after the sumit button has been clicked"