Recently I faced with the problem of submitting of html form which should be added on the page using CEWP. The problem is that in most cases master page of Sharepoint web part already has top-level html form:
And all placeholders are inserted within this form. So if you try to add your form in page layout or add html layout with form element on the page using standard Content Editor Web Part you will get nested forms which is not well formed html.
Unfortunately it did work for me as is (at least revision 1 from 2009-04-16 which is available on Codeplex. There is also revision 2 available on code.google.com - http://code.google.com/p/jquerysharepointform, but I didn’t tried it). I was needed to slightly modify the script:
Having this script you need to do the following actions in order to submit form from CEWP:
1. Add 1st CEWP on the page with the following content:
You can also download these scripts on your web server (e,g, in [12 or 14]/Templates/Layouts folder) and use them from it.
2. Add 2nd CEWP with your “form” (instead of form you need to insert div element, like described here):
In this example with this code added to the CEWP you will be able to submit forms into “html://example.com” URL. It will work also for cross domain submits.