Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI Help

Status
Not open for further replies.
Oct 3, 2002
5
AU
I am trying to display the output of a perl script into a HTML template as ssi.

The script builds a boolsearch form and populates a drop-down menu for a flat file database script.

I can display the ouput of the database in ssi by using

use CGI;
my $query = CGI->new();

foreach ($query->param) {
my $value = $query->param($_);
$contents{$_} = $value;
}

print $query->header();

But does not seem to work on the boolsearch search script .....

Any suggestions

Many thanks
 
#Try this
use CGI;
my $query = CGI->new();
$struct=$query->Vars;

while (my($k,$v) = each %$struct) {
$output.= "$k => $v\n";
}
print $query->header();
print $output;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top