simple CGI stuff
This commit is contained in:
parent
080b7ba992
commit
66f6eaff61
22
web/html/cgi-bin/query.cgi
Executable file
22
web/html/cgi-bin/query.cgi
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
use CGI;
|
||||||
|
|
||||||
|
|
||||||
|
sub main {
|
||||||
|
my $query = CGI->new();
|
||||||
|
my $search = $query->param('q');
|
||||||
|
|
||||||
|
print $query->header();
|
||||||
|
|
||||||
|
print "You searched for: ", $query->escapeHTML($search);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
main();
|
||||||
|
|
||||||
|
1;
|
||||||
|
|
||||||
|
__END__
|
Loading…
Reference in New Issue
Block a user