Gossamer Forum
Home : Products : DBMan : Customization :

Ask for differe output

Quote Reply
Ask for differe output
Hello all,

I setup one field is called html_temp
if this html_temp=1 then db.cgi call a_html.pl
if this html_temp=2 then db.cgi call b_html.pl

How can I do it?

Thx

GabCh
Quote Reply
Re: Ask for differe output In reply to
Possibly you could add something to your .cfg file, which is where the html.pl file is defined.

You could try changing

require $db_script_path . "/html.pl";

to

Code:
if ($in{'html_temp'} == 1) {
require $db_script_path . "/a_html.pl";
}
else {
require $db_script_path . "/b_html.pl";
}

I don't know if it will work or not, but you could give it a try.


------------------
JPD