NAME
Apache::Wyrd::Form::Preload
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
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.
The preload requires an Apache::Wyrd::Query
object to be embedded in it. It can also accept a Apache::Wyrd::Defaults
object.
HTML ATTRIBUTES
NONE
PERL METHODS
NONE
BUGS/CAVEATS
Reserves the _setup and _generate_output methods.
AUTHOR
Barry King <wyrd@nospam.wyrdwright.com>
SEE ALSO
LICENSE
Copyright 2002-2004 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd
.