Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Advanced Guides | Troubleshooting | About
The #restful_form{} element produces an HTML form element. The form element is necessary if your website has to work without javascript. It is not necessary for a pure ajax/javascript driven website.
#restful_form {
method=post|get,
action="/formdest",
enctype="multipart/form-data",
body=FormElements
}
method
(string or atom) - Set the HTTP request-method (typically post
or get
).
action
(string) - Set the target-url of the form submit. If left blank, the same page module is used as target.
target
(string or atom) - Set the HTML target
attribute, which can be used for redirecting the form submission to a new window, or to a frame. If left blank, will just target the current window.
enctype
(string) - Sets the encoding for the form transmission.
body - (string) :: Contains the elements of the form