Solved

Form Submit Twice

Posted on 2008-10-13
1
473 Views
Last Modified: 2013-12-24
I have a form that I need to run a test and have it submit twice when the submit button is pressed once.
is there a way to do this?
0
Comment
Question by:usky1
1 Comment
 
LVL 63

Accepted Solution

by:
Zvonko earned 500 total points
ID: 22706766
You can submit the form twice when you change the form target setting.
For example you could first submit the form to a popup and then to the page itself.
Like this:

<form action="process.cfm" target="popup" onSubmit="submitTwice(this)" >

<script>
function submitTwice(theForm){
  theForm.target="popup";
  theForm.submit();
  theForm.target="_self";
  return true;
}
</script>
0

Featured Post

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Join & Write a Comment

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

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

10 Experts available now in Live!

Get 1:1 Help Now