The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache::Wyrd::Form::Template - Sub-form unit Wyrd

SYNOPSIS

    <BASENAME::SQLForm index="user_id" table="users">
      <BASENAME::Form::Template name="password">
        <BASENAME::Form::Preload>
          <BASENAME::Defaults>
            select 'root' as user_id;
          </BASENAME::Defaults>
          <BASENAME::Query>
            select user_id from users where name='Groucho'
          </BASENAME::Query>
        </BASENAME::Form::Preload>
        <b>Enter Password:</b><br>
        <BASENAME::Input name="password" type="password" />
        <BASENAME::Input name="user_id" type="hidden" />
      </BASENAME::Form::Template>
      <BASENAME::Form::Template name="result">
        <H1>Status: $:_status</H1>
        <HR>
        <P>$:_message</P>
      </BASENAME::Form::Template>
    </BASENAME::SQLForm>

DESCRIPTION

Every Form must have at least one Template. Each Template is arranged in order by default representing each step in a multiple-page form, with each Template a step in that sequence.

HTML ATTRIBUTES

name

Name of the form. Required, and must be different from the name of any other template.

action

What action to perform on the submission of this template. If set, changes the sequence of the submission, and can move the flow of information entry to an entirely different page and continuing the form sequence from that entry-point.

PERL METHODS

(format: (returns) name (arguments after self))

(scalar) action (void)

(Read-only) Returns the action attribute

(scalar) name (void)

(Read-only) Returns the name attribute

(scalar) form_body (void)

(Read-only) Returns the template proper.

BUGS/CAVEATS/RESERVED METHODS

Reserves the _setup and _format_output methods.

AUTHOR

Barry King <wyrd@nospam.wyrdwright.com>

SEE ALSO

Apache::Wyrd

General-purpose HTML-embeddable perl object

Apache::Wyrd::Form

Build complex HTML forms from Wyrds

LICENSE

Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.

See LICENSE under the documentation for Apache::Wyrd.