Documentation

RESTful Form Element - #restful_form {}

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.

Usage

   #restful_form { 
      method=post|get,
      action="/formdest",
      enctype="multipart/form-data",
      body=FormElements
   }

Attributes

  • 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

See Also



View Source or Submit Corrections for this Documentation Page
Copyright © 2008-2021 Nitrogen Web Framework. Released under the MIT License.