fields. All form fields

$form:fields

Such a construction returns hash with all form fields. Hash keys' names are the same as the names of form fields. Hash keys' values are the form fields' values.

Example
^form:fields.foreach[field;value]{
   $field - $value
}[
<br />]

…will output all form fields' names and their values.
Assume, requested URI is…
www.mysite.com/testing/index.html?name=worst&grade=F

Then the example will output:

name - worst
grade - F



Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 21.09.2007