in reply to Re: Array extraction and separate returns
in thread Array extraction and separate returns

Upon further examination, I have concluded that what i really need is an loop statement stating that if the keywords are found in <SIDX> then this:
$main_template =~ s/%%keywords%%/$fields{'keywords'}/g; $main_template =~ s/%%searcresults%%/$pitem/g;
and if the keywords are found in <SIDX2> then this:
$main_template =~ s/%%keywords%%/$fields{'keywords'}/g; $main_template =~ s/%%premiumresults%%/$pitem/g; print "Content-type: text/html\n\n"; $main_template = tseek::insert_tmpl_includes($main_template); print "$main_template"; exit;