Apache::Wyrd::Form::Preload - Wyrd to load a Form Wyrd with existing data
<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>
Provides pre-loaded values to the Form Template in which it resides. The query may return multiple values, in which case it will create an array of hashrefs data structure appropriate for an Apache::Wyrd::Input::Complex input if it is flagged to do so with a "complex" or "multiple" flag.
Apache::Wyrd::Input::Complex
The preload requires an Apache::Wyrd::Query object to be embedded in it. It can also accept a Apache::Wyrd::Defaults object.
Apache::Wyrd::Query
Apache::Wyrd::Defaults
NONE
Reserves the _setup and _generate_output methods.
Barry King <wyrd@nospam.wyrdwright.com>
General-purpose HTML-embeddable perl object
Build complex HTML forms from Wyrds
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd.
Apache::Wyrd
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Apache::Wyrd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Wyrd
CPAN shell
perl -MCPAN -e shell install Apache::Wyrd
For more information on module installation, please visit the detailed CPAN module installation guide.