#!/usr/bin/perl use CGI; my $query = CGI->new; my $action = $query->param('action'); my $reaction = $query->param('reaction'); print $query->header, $query->start_html, "

Result

\n", "Action: ", $action || "no action", "
", "Reaction: ", $reaction || "no reaction", $query->end_html;