OK, got this figured out and a demo. Check out http://www.phpfui.com/test.php. It my documentation site for my PHP wrapper around Foundation. The entire site is written in PHP, with no HTML files, templates or other blocks of HTML. This page is 71 lines of PHP code actually.
So what you can do is specify which JS libraries to include. It will also show you the post values on a successful post and the libraries you included (debugging of the page really, but just nice to show).
So if you include no libraries, all buttons will post. The one combination that breaks it is Foundation 6.6. Plan vanilla HTML works, as just just JQuery. Foundation 6.5 works as well. Foundation 6.6 is clearly broken, as is does not submit with plain HMTL and plain JQuery do post. This is standard HTML behavior, and we don’t want to change it.
In general, I use the name of the submit button to allow multiple submits on a page. Often I don’t care what the text says, the fact that the button was pressed will post the name of the submit button, and I can just test that to know what button was pressed.
It also appears that the name of the submit button does not matter to JQuery, so maybe this issue was fixed in JQuery, or modern browsers no longer have the original issue? Don’t know.
Anyway, I think the fix is to remove the e.preventDefault() call on line 69 of foundation.abide.js. You are actually submitting the form, so you don’t really need to prevent the default action (which should be submit). I traced into JQuery, and it looks like not processing the default action on a submit will not submit the form. I think this is the proper behavior.
I have done some testing on my site with Foundation 6.6 (currently on 6.5 due to this issue), and I have not see any problems with this solution yet. Let me know what kinds of things to look for, and I can do some more in depth testing. I have just been trying to get 6.6 up and running and this has been a huge issue for my site.
Anyway, absolutely love Foundation and happy to help out in anyway possible.
Also, looks like we should be able to grab the packagist.org foundation account now, the guy has even posted an update to his one and only repo. I’ll see if I can connect everyone over emails this weekend.