NAME

Apache::Wyrd::Input::Preload - Specify preloaded form values from CGI

SYNOPSIS

  <BASENAME::Form>
    <BASENAME::Form::Template name="options">
    <BASENAME::Input::Preload params="username, preferred_items" />
      <b>Username:</b><br>
      <BASENAME::Input name="username" type="text" />
	  <BASENAME::Input::Set name="options" type="checkboxes" options="Foo, Bar" />
    </BASENAME::Form::Template>
    <BASENAME::Form::Template name="saved">
    <H1>Status: $:_status</H1>
    <HR>
    <P>$:_message</P>
    </BASENAME::Form::Template>
  </BASENAME::Form>

DESCRIPTION

NOTE: Apache::Wyrd::Form objects now arbitrarily accept CGI data in preloads, so this class is consequently obsolete, and will be dropped in future versions.

The Input::Preload Input Wyrd will load the values passed to it via the CGI into the opening Template of a form Wyrd. The inputs which are to be preloaded are specified in the param attribute and are loaded into inputs with that parameter name.

This allows a Form Wyrd to be preloaded from a regular HTML form or from a different Form Wyrd rather than duplicating Forms across different pages.

HTML ATTRIBUTES

param, params

The cgi parameters which contain the values to be preloaded, separated by either commas or whitespace.

BUGS/CAVEATS

Reserves the _format_output method.

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.