Form.pm


NAME

Communiware::DE::Form - Dynamic element Form


SYNOPSIS

   <:Form [key=value]+:>
    ...
   <:EndForm:>


DESCRIPTION

This dynamic element creates HTML form. All parameters of the <FORM> HTML tag except `action' are allowed. Other parameters:

type=(context|special|script)
context means that field values are placed into global context after submit. Submit-time context is not created. This is the default value.

script means that the form is prepared to be processed by communiware script. Script name must be specified in the submitto parameter.

special means that a special submit-type context is created. This context is deleted before the page we submit to is processed. This type is intended primarily for handling of <:Subscribe:> and <:MailTo:> dynamic elements. It differs from <:Post:> dynamic element in that processor of postings is not called.

submitto=(item[/template]|script)
item is ID of the item we request in submit.

template is a template for the item if different from default.

script communiware script we submit to. This is only the name of the script, as usually. Prefix is substituted automatically.

For type=script you i<must> specify submitto parameter, otherwise its absence means current item and template.


FUNCTIONS

16 октябрь 2007 13:44