environment.C
:
read the environment variables.
map.C
:
create and search a map
,
a.k.a. an associative array.
form.html
:
an HTML page containing a form with widgets.
Put this page in the public_html
subdirectory
of your home directory on storm.cis.fordham.edu
.
display.C
a gateway program launched by the SUBMIT button in the above form.
cd cd public_html (public_html has an underscore, not a dash.) pwd wget https://markmeretzky.com/fordham/2000/src/gateway/form.html mkdir cgi-bin (cgi-bin has a dash, not an underscore.) cd cgi-bin pwd wget https://markmeretzky.com/fordham/2000/src/gateway/display.C c++ display.C ls -l a.out mv a.out display.cgi ls -l display.cgi
Then edit the form.html
you just downloaded,
and in the
ACTION
attribute of the
FORM
tag, change my Fordham name
mmeretzky
to your Fordham name.
Then point your browser at
https://storm.cis.fordham.edu/~jsmith/form.html
where jsmith
is your Fordham name.
bmi.html
and
bmi.C
to compute your Body Mass Index.
cd ~/public_html wget https://markmeretzky.com/fordham/2000/src/gateway/bmi.html cd cgi-bin wget https://markmeretzky.com/fordham/2000/src/gateway/bmi.C c++ bmi.C ls -l a.out mv a.out bmi.cgi ls -l bmi.cgi
Then edit the form.html
you just downloaded,
and in the
ACTION
attribute of the
FORM
tag, change my Fordham name
mmeretzky
to your Fordham name.
Then point your browser at
https://storm.cis.fordham.edu/~jsmith/bmi.html
where jsmith
is your Fordham name.