Sample Forms

This document presents some simple forms which are managed by Tcl applets.

Simple Form 1

This form has an applet attached which is just linked to appinfo.tcl to show what information is presented to a form-attached applet.

Text within the form.

Your name (eg. "Steve Ball"):

Other names:

End of first form.

Sample Form 2

This form is similar except that the applet (form2.tcl) checks the input parameters. The checking is done at form submission (which is simpler to code). The name must have two alphabetic words and the age must be an integer where 0 < age <= 100.

Text within the form.

Your name (eg. "Steve Ball"):

Occupation:

Age:

End of second form.

Sample Form 3

This form is identical to the form above, except that the applet (form3.tcl) checks the input "on-the-fly" rather than only when the form is submitted.

Text within the form.

Your name (eg. "Steve Ball"):

Occupation:

Age:

End of third form.

Sample Form 4

This form is somewhat more complex than the above examples. The form is dynamically modified by the applet as the user enters information into the various fields.

Your name:

Your age:

Gender: