#!/usr/bin/perl
open(TOP,"top.html");
print "Content-type:text/html\n\n";
print while ();
close(TOP);
use CGI qw(param);
my $which1 = param('which1');
my $which2 = param('which2');
my $which3 = param('which3');
my $which4 = param('which4');
my $which5 = param('which5');
if ($which1) {
if ($which1 eq 'Yes') { # business
print qq~Is your company a registered charity or non-profit organisation?
~;
}
else {
print qq~Does your web site make money?
~;
}
}
elsif ($which2) {
if ($which2 eq 'No') { # regular
print qq~Complete! You need a Regular License.~;
}
else {
print qq~Do you employ any staff or paid helpers for your web site?
~;
}
}
elsif ($which3) {
if ($which3 eq 'Yes') { # business
print qq~Complete! You need a Business License.~;
}
else {
print qq~Does your web site make more than &\#163;10,000 GBP or \$20,000 USD per year?
~;
}
}
elsif ($which4) {
if ($which4 eq 'Yes') {
print qq~Complete! You need a Business License.~;
}
else {
print qq~Complete! You need a Regular License.~;
}
}
elsif ($which5) {
if ($which5 eq 'Yes') {
print qq~Complete! You need a Regular License.~;
}
else {
print qq~Complete! You need a Business License.~;
}
}
else {
print qq~This short quiz will help you to find whether you need a Business or Regular bbv2 license. Please click the appropriate button below.
~;
}
open(BOT,"bottom.html");
print while ();
close(BOT);