The mgiPathArgument Tag

Tag Behavior

The mgiPathArgument tag displays the value of a form field that has been submitted with the "get" method, the name of all path arguments, or the value of all path arguments.

Tag Syntax

The mgiPathArgument tag has one required parameter and three optional parameter. The tag form is:

<mgiPathArgument name="Field Name" defaultValue="text" 
function="Tag Function" delimiter="Separator">

Required Parameters:

  • name="Field Name" where "Field Name" is the exact name of the form field whose value you wish to write.

Optional Parameters:

  • defaultValue="Text" where "Text" is equal to the value displayed if the path argument is blank or does not exist.
  • function="Tag Function" where "Tag Function" is the action of the tag. The "returnAllNames" function returns a delimited list of all path argument names. The "returnAllValues" function returns a delimited list of all path argument values. The default delimiter for the "returnAllNames" and "returnAllValues" functions is a comma. The name and value delimiter may be customized by including the delimiter parameter. The default function of the mgiPathArgument tag is to display the value of the form field listed in the name parameter.
  • delimiter="Separator" where "Separator" is the character that separates each name in the "returnAllNames" function and each value in the "returnAllValues" function. The default delimiter is a comma.

Example Usage and Output

<mgiPathArgument name="City">

In this example, a field named "City" is included on a form. When a web site visitor completes the form, they enter "Charlotte" in the "City" field and submit the form. The following is displayed in the location of the mgiPathArgument tag:


Suggested Usage

  • Form Processing

[Return to the Referencing MGI Menu]

[User Guide Main Menu] [Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]