Experiment with the hidden-form example presesnted in Figures 21a through 21c.

a. Obtain the source files for form.html, hidenForm.c, hiddenForm2.c.
b. Install form.html on the web server.
c. Compile hiddenForm.c with util.c to generate an executable hiddenForm.cgi. Install hiddenForm.cgi on the web server.
d. Compile hiddenForm2.c with util.c to generate an executable hiddenForm2.cgi. Install hiddenForm.cgi on the web server.
e. Browse form.html. Does the session data (the name entered in the static form) get passed to the last web script?
f. Summarize the experiment and your observations.

e. Yes. See below.





The screen captures are presented below:


The initial page:








When the page is submitted, hiddenForm.cgi is executed by the server, and the web page that it generated is received by the browser and displayed as follows:








The source code of the page above, generated by hiddenForm.cgi:


```


This form was dynamically generated by

Query Results

You submitted the following name/value pairs:







  • id = 123456789








Press to



```





When the form above is submitted, the name-value pair

Computer Science & Information Technology

You might also like to view...

Is a distinctive set of treatments that can be ornate, playful, or severe in nature and groups a work within a category

What will be an ideal response?

Computer Science & Information Technology

The line:

virtual double earnings() const = 0; appears in a class definition. You cannot deduce that: a. All classes that directly inherit from this class will override this method. b. This class is an abstract class. c. Any concrete class derived from this class will have an earnings function. d. This class will probably be used as a base class for other classes.

Computer Science & Information Technology