Is to possible to submit two forms simultaneously with either javascript or a submit button?
Form structure is ok something like this:
<form name="form1" method="post">
.........
</form>
<form name="form2" method="post">
.........
</form>
And get the data from the two in a array?
No, this is not possible. You can create a third hidden form, that will serialize fields from both of them.
If you can use jQuery:
You need to make sure that str1 and str2 aren’t empty and of course avoid name conflicts between the two forms.