|
Apache::Wyrd::Form::Preload - Wyrd to load a Form Wyrd with existing data |
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.
The preload requires an Apache::Wyrd::Query object to be embedded in
it. It can also accept a Apache::Wyrd::Defaults object.
NONE
NONE
Reserves the _setup and _generate_output methods.
Barry King <wyrd@nospam.wyrdwright.com>
Copyright 2002-2004 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd.
|
Apache::Wyrd::Form::Preload - Wyrd to load a Form Wyrd with existing data |