InsideScriptLib or
OutsideSriptLib in order for scripts to be run at all.
InsideScriptLib, the script
program must be placed in a library that is included in the Script Library
configuration value. Actually, the only objects stored in a Script Library
that can be accessed through the Web server are programs. Note: REXX/400 procedures can only be called from within a library specified by the Script Library configuration value. Files containing REXX/400 code outside of a Script Library will always be served as text files.
*USE authority to both the library and the script.
<FORM ACTION="/cgi-bin/formscript" METHOD="POST"> Entry Field 1: <INPUT NAME="Var1Name" TYPE="text"> <P> Entry Field 2: <INPUT NAME="Var2Name" TYPE="text"> <P> <INPUT TYPE="submit" VALUE="Submit"> <P> </FORM>
The user would request the above document, fill in a value (for instance, "Text1" and "Text2") in the entry field, and then press the submit button. This would request the formscript script using the POST method. The standard input to the script would be:
Var1Name=Text1&Var2Name=Text2
<A HREF=...>...</A>) in an HTML
document. Each URL used in the hyperlink to the script can have different
extra path information or query strings. For example, the
following two hyperlinks would call the script weather using the
GET method. The first would request the weather for Kalamazoo, Michigan
and the second would request the weather for Rochester, Minnesota.
<A HREF="/cgi-bin/weather?AZO">Kalamazoo, Michigan</A> <A HREF="/cgi-bin/weather?RCH">Rochester, Minnesota</A>
WRKACTJOB command specifying option
5 on the proper job and then selecting menu item 10. Note: To
keep the job log from becoming very large, the job log is cleared after
every ten (10) requests. If your job log entry is not there this was
probably the tenth request so request the script again.