View Full Version : Submiting two forms with one button
12-06-2002, 05: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, 06:18 PM
<input type="submit" onclick="document.forms['a'].submit();return true;">
This should do it.
12-06-2002, 06: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, 09: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.