W3TPL/tag/get-let

From Woozle Writes Code
< W3TPL‎ | tag
Revision as of 21:12, 20 April 2022 by Woozle (talk | contribs) (Created page with "==About== The {{l/w3tpl/tag|get}} and {{l/w3tpl/tag|let}} tags are very similar, even though conceptually they perform opposite tasks. * '''get''': ** retrieves an input ''or...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

The <get> and <let> tags are very similar, even though conceptually they perform opposite tasks.

  • get:
    • retrieves an input or stored value and (ultimately) outputs it to the display.
    • is mostly like <let> with echo and self assumed.
    • does not require a name= attribute.
  • let:
    • receives an input value and (ultimately) stores it as a variable.
    • requires a name= attribute.

Options

Both tags have these options in common:

  • arg= (input): name of POST field to retrieve as tag input
    • USAGE: form processing
  • chr= (input): ASCII number of character to use as tag input
  • copy= (input): name of another variable whose value should become the input
  • val= (input): value to use as input