- or download this
<FORM action="yourscript.cgi" method=post>
<INPUT type=hidden name=action value="storeevent">
...
- or download this
#!/usr/bin/perl -wT
use strict;
use CGI;
...
my $cgi = new CGI;
my $action = $1 if $cgi->param('action') =~ /^(\w+)+/;
&store_event if ($action eq 'storeevent');
- or download this
my $action = $cgi->param('action');
&$action;
- or download this
my $action = (defined $cgi->param('action')) ?
($cgi->param('action') =~ /^(\w+)+/) ? $1 : '' : '';