Getting bogged down trying to convert some perl to php. It's from a 'banner farm' program...
banner.cgi file script....
use strict;
use CGI;
use ParseTemplate;
my $templates = '/full/path/to/PPT/bannercode/templates/';
my $q = CGI->new;
print $q->header.' ';
my $banner = $q->param('banner');
my $id = $q->param('id');
my $site = $q->param('select');
my %tokens;
$tokens{'banner'} = $banner;
$tokens{'id'} = $id;
$tokens{'site'} = $site;
my $template = "$templates$banner.html";
my $tempstring = ParseTemplate->readTemplate($template);
my $newtemp = $tempstring->printTemplate(\%tokens);
print $$newtemp;
exit;
<input type="hidden" name="banner" value="<!--#echo var="QUERY_STRING" -->
Can anyone help with converting this?
Newdom