ElementTree addRemoteForm(ElementTree parent, String action, FormType method)
Arguments
parent: The parent elementaction: The URL of the other applicationmethod: The method to use to send the form data
Usage
This adds a form that points to a specified URL. Unless the other URL is a (byte for byte) identical copy of the current application, you will not be able to use Kaya's special state handling, and must construct another way of passing the information. If the security of the information is not critical, and the other application is also a Kaya application, then the Pickle module may be of use.
form = addRemoteForm(doc.body,
"http://www.example.com/email.cgi",
FormPost);
Note that in HTML form input controls may not be placed directly inside a form - you must add block-level elements to the form and add controls to those elements. The fieldset element is especially suited to this and the addFieldset function handles this.