Re: [SMARTY] Re: handling forms

From: Date: Sat, 31 May 2003 19:16:11 +0000
Subject: Re: [SMARTY] Re: handling forms
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9626@lists.php.net to get a copy of this message
Hello, On 05/31/2003 04:09 AM, Greg Donald wrote:
The documentation is more a reference manual for all it can do. The examples are well commented, so you can learn from them as most users have done.
Yup, I've got stuff working pretty good now after seeing some examples. :) I was wondering though, is there any sort of 'Fetch' function to use instead of 'Output'? I had to make an output wrapper function but was curious if I just overlooked a built-in? function FinalHTML($html){ global $FinalHTML; $FinalHTML .= $html; } $signup->Output(array( "Function"=>"FinalHTML", "EndOfLine"=>"\n" ));
You can use the global function FormCaptureOutput that comes with a class like this: echo FormCaptureOutput($form,array());
Also, is this where I insert data into the database? Is this just a placeholder for the example? if($doit){ $signup->ReadOnly=1; }
Yes, in this case it just turns the whole form fields into read only in case you want to just display what was entered. If you want to access the database or do something else when the form is submitted completely valid, you can just replace this code. -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/

« previous php.smarty.general (#9626) next »