Solved

Form Submit Twice

Posted on 2008-10-13
1
477 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 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