[Phplib-users] tpl_form
Brought to you by:
nhruby,
richardarcher
From: Hans-Peter Z. <han...@un...> - 2002-08-13 06:17:48
|
Dear all, I'm new to phplib and tried the tpl_from example according the documentation. I was stuck on accessing/getting the user input values. I've overriden the function process_input() { $this->values=array("vhs_nr"=>$vhs_nr, "jahr"=>$jahr, "titel"=>$titel); return true; } but that didn't work. Here is my code (from the example) for displaying and getting the user input: $mf = new myform; $mf->init(array()); if ($ret = $mf->get_values()) { // $ret shoud be the array containig all user input values, isn't it? print "VHS-Nr = ". $ret["vhs_nr"]; //$mf->clear(); } else { $mf->display(); } Could anybody explain a little more on using tpl_form, or giving me some code samples? Thanks Hans-Peter |