Date: 08/29/00
- Next message: Jonathan Gale: "[phplib] TPL_Form"
- Previous message: R.B. Scholtus: "[phplib] PHP4 and template.inc"
- In reply to: Jonathan Gale: "[phplib] TPL_Form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Don't know if you've checked this mailing list post by
Massimiliano Masserelli, author of tpl_form:
http://marc.theaimsgroup.com/?l=phplib&m=94344574830067&w=2
it has a zip file (tplexample.zip) at the very end with
a working example.
My Nguyen
Web Engineer
Verisity Design, Inc.
On Tue, 29 Aug 2000, Jonathan Gale wrote:
> Greetings,
>
> I was about to write a form abstraction layer (you know...a PHP version
> of CGI.pm) when I found that PHPLib already has this functionality. I
> looked through the (sparse) documentation on the website for tpl_form
> examples but couldn't really find what I needed.
>
> The question is this:
>
> In the main script how do you determine that 1) The form has been
> submit-ted and 2) that the data has been validated and is ready for
> processing. The example shows:
>
> if ($rv = $mf->getdata()) {
> $mf->clear(); // This is not strictly required, anyway it should
> free
> // some memory...
> global $email;
> // process your data at will
> } else {
> $mf->display();
> }
>
> But as others have pointed out, the getdata function does not exist.
> Perhaps they meants get_values? In either case I can't seem to get it
> to work correctly. Someone posted some examples to the list a while
> back but they didn't include the main application script that should
> contain this logic.
>
> Any help is appreciated.
>
> -Jonathan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Jonathan Gale: "[phplib] TPL_Form"
- Previous message: R.B. Scholtus: "[phplib] PHP4 and template.inc"
- In reply to: Jonathan Gale: "[phplib] TPL_Form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

