MSM-Workstation
The Macbeth Example -- Using MSM-PDQweb

Go back to the previous page in this sequence
Go back to the start of this chapter
Go back to the first page of this tutorial

The First "Form"

In the case of the windows-based approach, the first step was to define a window with a number of components in it. That first step is not much different in the web-based approach. But, rather than build a window-definition interactively in a step-by-step fashion, the definition of the "form" to be processed will have to be transmitted to the "browser". The creation of such a form is a process for which a number of "commercial off the shelf" products is already in existance. Rather than re-invent such products, it is recommended to use any of these available products, and import the forms that can be generated using such a form definition editor program into a M[UMPS] program.

The "HTML" code for a simple form that corresponds to the first window in the Macbeth example would look like:

<html><head><font face="Arial"><title>Macbeth Demonstration</title></head>
<body bgcolor=#ffffff>
<h1><img src="powered.gif" border=0> Macbeth Demonstration</h1>
<form action="macbeth.web" method="POST">
<input type=hidden name="EP" value="FIRST">
<b>Search for</b> <input type=text name="Search" value="">
<b>Select from</b> <select name="Select">
<option value="1">Duncan</option>
<option value="2">Malcolm</option>
<option value="3">Donalbain</option>
...
<option value="35">Second Murderer</option>
<option value="36">Third Murderer</option>
<option value="37">Messenger</option>
</select><p>
<input type=submit value="Search Database" name="Button"><p>
</form>
<p><hr></body></html>

which will appear like:

Go on to the next page in this sequence.