Usage of cgi to send values to the ws10 – NOVUS Web Server – WS10 User Manual
Page 19

Web Server – WS10
NOVUS AUTOMATION
19/33
USAGE OF CGI TO SEND VALUES TO THE WS10
An HTML formulary can write to a WS10 register using the POST method. The WS10 built in CGI script associate the formulary values to the WS10
registers. The example 3 show the use of the POST method to write on the WS10 real time clock registers and on 3 other registers.
The CGI script name defined at the [Auth] section of the WEBS.CFG file must match to the name used at the page Forms. The default name
procform is used on the example and shown below:
procform
METHOD=POST>
The name of the page to be presented after the form post can be defined. This definition is optional, and the same form page will be reloaded if not
defined. At example 3, the following hidden field is used to define the next page to be presented:
It is important to examine the following field definition extracted from example 3:
In this field, the first usage of the tag
_INTERNAL_/FT1TOT
is not enclosed by the percent characters, since we don’t want the WS10 to
replace the name by the corresponding value. The tag name must remain untouched to inform to the WS10 CGI script the name of the destination
register for the written data. The second usage of the same tag is enclosed by the percent characters to allow the WS10 to replace the tag name
with the corresponding value, which will be used as the initial value for the form field.
Date/Time