Installation guide
Creating Input Documents
2-5
<p><input type="submit" name="Submit" value="Submit"></p>
<!-- STEP 5
Add the name of your main application function to the file
matweb.conf. See the matweb.conf file in the wsdemos
directory and the documentation.)
-->
webmagic Input
Examine the significant part of the source for webmagic1.html.
<form action="/cgi-bin/matweb.exe" method="POST">
<input type="hidden" name="mlmfile" value="webmagic">
<p>Magic square size (minimum is 3, maximum is 20):
<input type="text" size="2" maxlength="2"
name="msize"></p>
<p><input type="submit" name="Submit" value="Submit"></
p>
</form>
The line
<form action="/cgi-bin/matweb.exe" method="POST">
calls matweb, the entry point to the MATLAB Web Server. matweb.exe is
the Microsoft Windows NT name of the program used by the MATLAB
Web Server to extract data from HTML forms. On Solaris/Linux this
program is called just
matweb. We refer to the program as matweb
throughout this document except when the platform distinction is
important.
matweb is described more thoroughly in the next chapter.
The next line
<input type="hidden" name="mlmfile" value="webmagic">
provides the name of the MATLAB M-file (mlmfile) to run. In this
application the M-file is named
webmagic.
Lastly, the input
<input type="text" size="2" maxlength="2" name="msize"></p>
passes to webmagic.m a two-character field named msize, which contains
the size of the magic square to compute.