Top half of page (saved as xxxxx.html - appears between the horizontal rules)

how the files in the folder /var/www/cgi-bin/xxxxx work with each other -

first call http://192.168.1.113/cgi-bin/xxxxx/xxxxx.cgi to load the cgi script xxxxx.cgi
(remember that the folder cgi-bin in /var/www/ is actually a link to /usr/lib/cgi-bin as required by apache2)
xxxxx.html is the source of the the top half of the page first shown to the remote user
click-on links or pictures contained within the xxxxx.html display cause bash files to run
command links are stuctured like
a href="xxxxx.cgi?page=xxxxx&string1=string_one&string2=string_two&string3=string_three"

the cgi process converts page=xxxxx to pg-xxxxx.sh and then the file pg-xxxxx.sh receives the strings defined as above
pg-xxxxx.sh can make bash commands and call C, python and basic programs etc
in this example xxxxx.bas is a Blassic basic program called by pg-xxxxx.sh
stored in var/www/cgi-bin/xxxxx/

Now do it - tell xxxxx.cgi (which generated this page) to use ash script pg_xxxxx.sh
and send string1 and string2 for it to use
Send the values of string1, string2 and string3 to xxxxx.cgi

This is the bottom of the html top half