The mgiFieldContent TagTag BehaviorThe mgiFieldContent tag displays the value of a field from a form submission, all post arguments, or all post argument values. (See also mgiPostArgument) Tag SyntaxThe mgiFieldContent tag has one required parameter and four optional parameters. The tag form is: <mgiFieldContent name="Field Name" defaultValue="Value" encodeHTML="Yes/No" function="Tag Function" delimiter="Separator"> Required Parameters:
Optional Parameters:
Example Usage and Output<mgiFieldContent name="Phone Number"> In this example, a field named "Phone Number" is included on a form. When a web site visitor completes the form, they enter "919-555-0375" in the "Phone Number" field. Then the visitor submits the form to a page containing the mgiFieldContent tag. The following is displayed in the location of the mgiFieldContent tag: 919-555-0375 <mgiFieldContent name="Email" defaultValue="webmaster@domain.com"> In this example, a field named "Email" is included on a form, but the web site visitor is not required to list their email address. Therefore, in order to use the email address in an mgiSendMail tag (for example), a default email address is included. If the visitor enters an email address, that email address will be displayed. If the visitor does not enter an email address, the default address is displayed: webmaster@domain.com Suggested Usage
|
[Return to the Referencing MGI Menu]
[User Guide Main Menu] [Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]