View Full Version : Submiting two forms with one button
12-06-2002, 06:58 PM
Is there a way to submit the data in two forms when the submit button is hit in one form? Example: the info in form a is always submited when the submit button in form b or c is pressed.
12-06-2002, 07:18 PM
<input type="submit" onclick="document.forms['a'].submit();return true;">
This should do it.
12-06-2002, 07:54 PM
I tried the code, but when I tested it, it was still only sending me the info from the form which contained the submit button. Any idea what I could have done wrong or what I might have misconfiged.
12-06-2002, 10:17 PM
To help you further I would need to see at least the relevant parts of your code.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.