Solved

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

Posted on 2004-08-18
2
287 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
Comment Utility
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
Comment Utility
thanks eric
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to split this in C++ 4 76
object oriented javascript web form 8 71
noX challenge 17 76
array11 challenge 16 51
Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now