Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/usr/local/bin/perl
use CGI;
use CGI::Carp 'fatalsToBrowser';
use strict;
my $cgi = new CGI;
print $cgi->header,
$cgi->start_html,
$cgi->start_form;
my $parm = $cgi->param('parm');
# Three possible cases.
# 1 - no interaction yet -> give input page
# 2 - input page submitted -> confirm input
# 3 - confirmation submitted -> accept as final
# if 'resub', the first input page has been submitted
if ($parm eq 'confirm')
{
print qq(<p>You submitted: $parm<br />
If correct, please continue.<br />),
$cgi->submit(-name=>'submit',
-value=>'Continue'),
qq(</p>);
}
elsif ($cgi->param('submit') eq 'Continue')
{
print qq(<p>Thanks</p>);
}
else
{
print $cgi->popup_menu(-name=>'parm',
-values=>['confirm','don\'t care','another'],
-default=>'confirm'),
$cgi->submit(-name=>'submit',
-value=>'submit');
}