Date: 08/29/00
- Next message: Sascha Kertzel: "[phplib] session timeout and user management"
- Previous message: My Nguyen: "Re: [phplib] TPL_Form"
- Next in thread: My Nguyen: "Re: [phplib] TPL_Form"
- Reply: My Nguyen: "Re: [phplib] TPL_Form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Sascha Kertzel: "[phplib] session timeout and user management"
- Previous message: My Nguyen: "Re: [phplib] TPL_Form"
- Next in thread: My Nguyen: "Re: [phplib] TPL_Form"
- Reply: My Nguyen: "Re: [phplib] TPL_Form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

