Subversion Repositories wimsdev

Rev

Rev 11212 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11212 Rev 11292
Line 2... Line 2...
2
tit:form
2
tit:form
3
type:$type_exec
3
type:$type_exec
4
syntax:!form `cmdvar'
4
syntax:!form ``cmdvar''
5
mean:Creates a html form pointing to the wims server. <br/>\
5
mean:Creates a html form pointing to the wims server. <br/>\
6
  Whenever possible, this command should be used instead of a direct use of\
6
  Whenever possible, this command should be used instead of a direct use of\
7
  html tag `&lt;form&gt;'. <br/>\
7
  html tag ``&lt;form&gt;''. <br/>\
8
  This command will create a &lt;form&gt; tag pointing to the wims server, adding\
8
  This command will create a &lt;form&gt; tag pointing to the wims server, adding\
9
  &lt;input&gt; fields to pass session number (and other reserved things in the\
9
  &lt;input&gt; fields to pass session number (and other reserved things in the\
10
  future). In lines which follow, other input (or select) fields may be\
10
  future). In lines which follow, other input (or select) fields may be\
11
  added to the form. A final `!formend' must also be added by the\
11
  added to the form. A final ``!formend'' must also be added by the\
12
  programmer. <br/> `cmdvar' is an optional parameter. Its value should be a valid\
12
  programmer. <br/> ``cmdvar'' is an optional parameter. Its value should be a valid\
13
  value for the variable `cmd'. In this case the value `cmdvar' will \
13
  value for the variable ``cmd''. In this case the value ``cmdvar'' will \
14
  be automatically submitted to the variable `cmd'. If this parameter is missing \
14
  be automatically submitted to the variable ``cmd''. If this parameter is missing \
15
  or is invalid, then the programmer should add a \
15
  or is invalid, then the programmer should add a \
16
  `&lt;input type="hidden" name="cmd" value="..." /&gt;' tag before the\
16
  ``&lt;input type="hidden" name="cmd" value="..." /&gt;'' tag before the\
17
  final `&lt;/form&gt;'. <p>\
17
  final ``&lt;/form&gt;''. <p>\
18
  The target of the form can be controlled by the variable `wims_ref_target'. \
18
  The target of the form can be controlled by the variable ``wims_ref_target''. \
19
  It can also be defined via an optional word `target=...'. Note that in this case \
19
  It can also be defined via an optional word ``target=...''. Note that in this case \
20
  the target must start with `wims_'.\
20
  the target must start with ``wims_''.\
21
  </p><p>\
21
  </p><p>\
22
  The variable `wims_form_method' which must be either `get' or `post' controls the method \
22
  The variable ``wims_form_method'' which must be either ``get'' or ``post'' controls the method \
23
  of the form. This method defaults to `post' for tool modules, and to `get' for all\
23
  of the form. This method defaults to ``post'' for tool modules, and to ``get'' for all\
24
  other modules.\
24
  other modules.\
25
  </p>
25
  </p>