On Thu, 7 Feb 2002, Simon Crute wrote:

> 1)
> cgiparam($q, $param_name, $param_default)
> where $q is a CGI object. 
> 
> This would set the tmpl_var $param_name to the value that
> $q->param($param_name) would return, or, if the $q->param($param_name)
> didn't exist, it would set it to the value of $param_default. 

I think you're asking for associate => $cgi.  Just make all your
settings to the $cgi object before you pass it.


> 2) 
> cgioutput($q)
> where $q is a CGI object. 
> This, would initially check through all tmpl_var variables that had not
> been set, and for any it finds, try to see if there is a value for the
> equivalent cgi parameter. If there was, it would set the tmpl_var
> parameter to that value. 

again, associate => $cgi does this.


-- 
Diplomacy is the art of saying "nice doggy" until you can find a rock.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to