Solved

How to tell asp to do something only after a form is submitted?

Posted on 2004-08-18
2
291 Views
Last Modified: 2010-04-17
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


else %>

  <script language="javascript">
  alert("You must check the box in the agreement statement in order to apply to the program.");
 </script>
<% 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"
0
Comment
Question by:polaatx
2 Comments
 
LVL 3

Accepted Solution

by:
bigjim2000 earned 250 total points
ID: 11836204
Have a hidden text field on your page that is initially set to a vaule like "".  Then in the header of your page, check the value of that hidden text field, and do something if it is <>"".  When the user hits submit, just change this value.

Hope this helps.

-Eric
0
 

Author Comment

by:polaatx
ID: 11836313
thanks eric
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 101
Java Loop 6 67
How to get time difference in minutes and seconds only between 2 dates 2 46
Vector, list Questions R 6 32
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This is an explanation of a simple data model to help parse a JSON feed
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question