Apache::Wyrd::Input::Preload allows to 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 >
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.
Product's homepage
Requirements:
· Perl